I'm using React-window - which is a more modern version of react-virtualized - to display a infinite list of images. It works very well with a classic list, but it freezes the ui when used as a grid.
I suspect the reason is that react-window grid does not send back a unique index for each element but a row and/or column index. Long story short, if you display 3 images per row:
- row 1 => image 1 = index 0, image 2 = index 1, image 3 = index 2
- row 2 => image 1 = index 0, image 2 = index 1, image 3 = index 2
So items are repeated instead of receiving index 4,5 and 6. Has anyone used the library's grid, and if so, how did you manage to retrieve the correct items in the correct columns?