I want to make infinite scroll page with image grid. Which parts of react-virtualized package I need? InfiniteLoader and WindowScroller and Masonry ? And how define limit of records in query when I scroll window.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
WindowScroller
works with the Masonry
component but InfiniteLoader
only works with Grid
and List
. (The docs mention this.)
And how define limit of records in query when I scroll window.
This question isn't really clear. Perhaps you should try something and then post a new question with what you've tried and why it isn't working.
Please be sure to read through and understand the layout and animation constraints sections of the Masonry
documentation first though, to avoid any confusion. :)