Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Large lists (10,000,000 items) doesn't display all items #735

Open
robertjcolley opened this issue Aug 23, 2023 · 4 comments
Open

Large lists (10,000,000 items) doesn't display all items #735

robertjcolley opened this issue Aug 23, 2023 · 4 comments

Comments

@robertjcolley
Copy link

https://codesandbox.io/s/laughing-stallman-6lnj8j?file=/index.js
https://6lnj8j.csb.app/

I've noticed that large lists don't seem to display all of the items in the list when scrolling down.

image

@Andromeda606
Copy link

Andromeda606 commented Sep 4, 2023

I having same problem, The React Virtual library works properly, but I doubt its optimization.

@esainty
Copy link

esainty commented Jan 19, 2024

Could it be to do with the height limit for divs? It's circa 33.5 million pixels on most browsers. If your list is comprised of rows that are circa 20px high that would put your limit around 1,675,000 rows which looks to be right around where your list is running out of space.

This is a hard limit, but there are ways around it since the window is just make-believe anyway. AG Grid has an implementation that they speak about here https://www.ag-grid.com/react-data-grid/massive-row-count/

In essence, taking the scroll position and amplifying it by the ratio between the div height and the real total height of all of your rows.

@stephen304
Copy link

For me in firefox, instead of the height of the virtual list being capped cutting off the last items, this manifests as the div showing up as just larger than the list, and scrolling down causes the new items to expand the list. This makes it time consuming to reach the bottom of the list since you have to repeatedly scroll to the bottom to expand the list so you can scroll more - and dragging the scroll bar seems slower than using the scroll wheel.

Easier demoed than explained:

simplescreenrecorder-2024-04-03_16.24.28.mp4

Not a huge issue imo since the limit is pretty huge, but good to keep in mind. The limit for me seems to be around ~17M px (the largest I was able to get mine to go was 17895700px)

@mohannadhanafi
Copy link

I have the same problem here, did you solve it? @robertjcolley

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants