react-infinite-scroll-component icon indicating copy to clipboard operation
react-infinite-scroll-component copied to clipboard

Drop previously fetched data possible?

Open tobiaskatch opened this issue 4 years ago • 2 comments

Hello, I am looking for an infinite scrolling solution. In your code it seems like all loaded elements are concated to your existing state data array. Did you think about dropping the previous data? (recycler view) Is this possible using your code?

Kind regards.

tobiaskatch avatar Oct 30 '21 04:10 tobiaskatch

i second this. i have rendered thousands of DOM elements and its becoming slower and slower. is it possible to only show the dom elements into view

hewilliam avatar Nov 11 '21 01:11 hewilliam

This is not the point of this library. If you wanna combo it with some other tools that do this you can do it freely; I'd recommend https://www.npmjs.com/package/react-recycled-list

fredericoo avatar Nov 12 '21 11:11 fredericoo