This happens when the loaded data gets to about 10000 posts with images/gifs

enter image description here

X formerly Twitter has the best infinite scroll I've seen so far I want to implement something similar but my UI has to be a grid so I can't use something like https://github.com/bvaughn/react-window.

I've also tried using react-intersection-observer to only show the elements if the list items are in view which brought the memory usage down quite a bit but it's still using a lot of memory.

enter image description here

0

There are 0 best solutions below