bvaughn / react-window

React components for efficiently rendering large lists and tabular data
https://react-window.now.sh/
MIT License
15.82k stars 785 forks source link

scrollToItem causing infinite rerender and page to crash #711

Closed CosmicSpectrum closed 1 month ago

CosmicSpectrum commented 1 year ago

hey i've tried to make a list that gets a prop of an item index.. and when using scrolltoitem function to make it scroll to it in a use effect to make it scroll on load causing infinite rerender and my app to crash.. any ideas why?

CosmicSpectrum commented 1 year ago

hey, after testing for a while i figured out that this problem occurs to me when using scrolltoitem on a variablesizelist.. is there a known problem with this implementation? does anyone know how to make scrolltoitem work with variablesizelist?

crapthings commented 1 year ago

same same~