Which parts of react-virtualized package I need?

2019-08-21 07:48发布

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条回答
手持菜刀,她持情操
2楼-- · 2019-08-21 07:55

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. :)

查看更多
登录 后发表回答