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
I've followed this issue since a very long time. Across the various Nextjs versions to which we upgraded this behaviour was little by little improved, but it is still far from being correct.
From my experience, Firefox is still problematic while the experience on chrome has improved.
There is an experimental flag scrollRestoration that aimed at resolving the issue but again this is not always working correctly.
Here is a branch in which it is enabled and you can see how, depending on the browser you use, it behaves differently: sometimes it doesn't even try to restore the scroll position.
The good news is that the Nextjs team claim they have resolved the issue in App router.
I would just stick a bit more with what we have and see.
If we manage to progressively migrate to app router we could have this fixed for free
When clicking on a Featured Product link, then clicking back, the browser zips down to the bottom of the page and then back up. It's a wild ride.
bandicam.2022-10-28.11-27-25-130.mp4
And in Firefox (not Chrome .. unsure of other browsers) clicking a Featured Product has unpredictable auto-scrolling results.
bandicam.2022-10-28.11-25-58-438.mp4
The text was updated successfully, but these errors were encountered: