petyosi / react-virtuoso

The most powerful virtual list component for React
https://virtuoso.dev
MIT License
5.25k stars 301 forks source link

Overscan property ignored in GroupedVirtuoso when scroll position is at the top of the list #148

Closed tschortsch closed 3 years ago

tschortsch commented 4 years ago

It seams that the overscan property of the GroupedVirtuoso component is ignored when the scroll position is at the top of the list. As soon as I start scrolling the overscan value seems to work and the list items get preloaded. When scrolled back to the top of the list the preloaded list items are removed again.

You can reproduce this issue with the StackBlitz example from this doc page: https://virtuoso.dev/grouped-numbers/

Demo video: https://vimeo.com/441256062

Versions:

petyosi commented 4 years ago

True.

alaboudi commented 4 years ago

The overscan prop does not work for me when used in the GroupedVirtuoso component as well

petyosi commented 3 years ago

@tschortsch @alaboudi this is fixed in v1 (in beta). Please test and give feedback. #203 includes installation instructions - please check the breaking changes.