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
When scrolled down on a page and linking to another, the pending component appears scrolled to the bottom, as opposed to being at the top on first load. The page then jumps to the top at the end of the pending period.
Observe pending component showing the bottom instead of top of the page
This also includes a potential workaround where It uses the router's 'onBeforeNavigate' event to scroll to the top of the page
Expected behavior
Scroll restoration currently executs in the onRendered stage of the router's events. This means anything like pending components dont receive the expected scrolling behaviour on load. I would expect the pending component to match the actual components logic, so things like full page skeleton loaders work properly.
Which project does this relate to?
Router
Describe the bug
When scrolled down on a page and linking to another, the pending component appears scrolled to the bottom, as opposed to being at the top on first load. The page then jumps to the top at the end of the pending period.
Complete minimal reproducer
https://stackblitz.com/~/github.com/alex-delia/profile-scroll-reset-repro
Steps to Reproduce the Bug
This also includes a potential workaround where It uses the router's 'onBeforeNavigate' event to scroll to the top of the page
Expected behavior
Scroll restoration currently executs in the onRendered stage of the router's events. This means anything like pending components dont receive the expected scrolling behaviour on load. I would expect the pending component to match the actual components logic, so things like full page skeleton loaders work properly.
Screenshots or Videos
Screen.Recording.2026-07-05.at.11.07.02.PM.mov
Platform
Additional context
No response