Closed vpsq closed 10 months ago
Another screenshot just to show the bottom of the list scrolled
The example hits the browser limitation of maximum element size, around 16M px in Chrome, last time I checked. I'm aware of several ways to work around this, but all lead to degraded UX, so for the moment I have given up on pursuing this further.
That makes sense, thank you for looking into it.
Virtuoso does not render large list > 10000 with item specified dynamic heights When a large data array list with > 10000 items is loaded and
itemContent
is used to render each item with random height obtained from the item object (height >1000px and < 2000px, but could be any height), scroll bottom/end does not show the last item in the array, but some intermediate array item. Using 10000 or less items in the list works.Reproduction
To Reproduce Steps to reproduce the behavior:
Item 9999
is showing (dark color - randomly generated - may make it slightly difficult to see)page.tsx
, Edit line 21, replace10000
with20000
ingenerateData()
and save the file (control-s on Windows)Item 19999
may not be showing in the divExpected behavior Virtuoso viewport scrolled to the bottom/end should show the rendering of the last item in the array regardless of the size of the array
Screenshots
SCREENSHOT 1: <=10000 items rendered correctly at bottom
SCREENSHOT 2,3: 20000 items not rendered correctly at bottom
Desktop (please complete the following information):
Additional context --no other context at this time--.