Which parts of react-virtualized package I need?

耗尽温柔 提交于 2019-12-13 07:28:37

问题


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



来源:https://stackoverflow.com/questions/47198921/which-parts-of-react-virtualized-package-i-need

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!