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

Not all items are displayed for very long lists (starting with around 1 million items) #551

Closed
denzakharov opened this issue Dec 26, 2020 · 7 comments

Comments

@denzakharov
Copy link

Not sure if the library was intended to be used with such long lists, but still seems worth mentioning. To reproduce, change item count for official example of FixedSizeList to 1 000 000: https://codesandbox.io/s/github/bvaughn/react-window/tree/master/website/sandboxes/fixed-size-list-vertical?file=/index.js

The last row that is displayed is Row 958697. Locally with different list item I hit a limit of 838860 records. Checked in Chrome and Safari, the result is the same.

@twall
Copy link

twall commented Jan 21, 2021

I don't think it even takes a million elements. I'm using a variable size list, updating item heights as they render, and it only takes a few thousand to make them run off the end.

@vwjh37
Copy link

vwjh37 commented Feb 5, 2021

I guess it is caused by the height limitation of elements, I changed the itemSize to some small value, for example 25, then I can scroll whole 1,000,000 rows.
and I find this
https://stackoverflow.com/questions/16637530/whats-the-maximum-pixel-value-of-css-width-and-height-properties

@KeitelDOG
Copy link

I'm trying to imagine how much time a person would take to scroll 1M of items in a list without reading them. And if he read even a few of them. Is there use cases for this? Because usually I see search replace the need to scroll more than 1K - 10K.

@AXeL-dev
Copy link

AXeL-dev commented Nov 9, 2022

Hello @bvaughn, any news for this issue?

@martijnthe
Copy link

I'm running into this problem as well.

@bvaughn
Copy link
Owner

bvaughn commented Aug 18, 2023

This is not something the library will support. I supported it with react-virtualized (bvaughn/react-virtualized#261) and I later regretted it.

Having thought about this use case a lot over the years– scrolling a 10M pixel list looking for something is not a good user experience. (And because of how virtualization works, in-browser search isn't an option either.) Some sort of pagination/filtering should be used to reduce the list.

I realize this is an opinionated stance, but I think my opinion is at least pretty informed (because I've thought about this a lot over the years).

Thanks for understanding.

@bvaughn bvaughn closed this as completed Aug 18, 2023
@SmartArray
Copy link

@bvaughn I am interested in why did you regretted it? I guess it was a use case that just happened to rarely, right?

I am having a use case where I need this, so I am trying to switch back to react-virtualized.
Also, about search functionality, I am considering to use server side search and jump to index X.

Anyway, thanks for all your contributions!

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

No branches or pull requests

8 participants