You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
useWindowVirtualizer with measureElement breaks scroll restoration #4107
as far as I understand the problem is that the virtualizer tries to keep visible elements in their places and when recalculating the height - it moves the scroll container, in the case of useWindowVirtualizer - the entire body.
And here the question is rather why the value of the previous page is taken as the initial value of the scroll position. At what point does the magic of scroll restoration occur.
Activity
Krasnopir commentedon May 7, 2025
as far as I understand the problem is that the virtualizer tries to keep visible elements in their places and when recalculating the height - it moves the scroll container, in the case of useWindowVirtualizer - the entire body.
And here the question is rather why the value of the previous page is taken as the initial value of the scroll position. At what point does the magic of scroll restoration occur.
Krasnopir commentedon May 7, 2025
Duplicate issue in virtual repo - TanStack/virtual#997
LadyBluenotes commentedon Jul 13, 2026
This appears to be owned by TanStack Virtual rather than Router. The same behavior has been reported without TanStack Router and with Vue Router
Closing this in favor of TanStack/virtual #997. There is also a pending fix in TanStack/virtual #1044.