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
[Router] - Page briefly jumps to the top before restoring scroll on reload #8502
When reloading a page after scrolling down, the page briefly jumps to the top and then returns to the position where it was reloaded.
The final scroll position is correct. The problem is the visible jump before restoration completes. I observe this in Chrome and Safari, including when running this minimal example in development mode. It can be intermittent, so repeated reloads may be necessary.
Start the application with pnpm dev and open the URL printed by Vite in Chrome or Safari.
Scroll down to approximately section 10.
Wait a moment, then reload the page with Command + R on macOS.
Watch the page briefly show the pink header at the top before returning to the previous scroll position.
Repeat the reload several times if it does not happen initially. Also try a hard reload (Command + Shift + R in Chrome), and specify which reload method is shown in the attached video.
Expected behavior
Reloading should preserve the previous scroll position without visibly jumping to the top first.
Screenshots or Videos
prod.mov
Second 0:13 (Second video)
example-dev.movtanstack.web.mov
Platform
Router version: @tanstack/react-router 1.170.39
Start version: @tanstack/react-start 1.168.58
OS: macOS — add your macOS version
Browser: Chrome and Safari
Browser versions: add the versions used for the recording
changed the title [-]Page briefly jumps to the top before restoring scroll on reload[/-][+][Router] - Page briefly jumps to the top before restoring scroll on reload[/+]on Sep 27, 2026
Activity
[-]Page briefly jumps to the top before restoring scroll on reload[/-][+][Router] - Page briefly jumps to the top before restoring scroll on reload[/+]