Next.js Discord

Discord Forum

Page Scroll Back to Top when page Hydrates

Unanswered
Bugz posted this in #help-forum
Open in Discord
I am facing a issue, where whenever I scroll while page is loading, it reset back to top once page is loading is completed, have attached a video.

I do not have any window.scrollTo in full codebase so it's not what causing the issue

I also tried enabling scrollRestoration: true, in expriemental next config, didn't work either.
I am not sure what code example I can provide from codebase, but ask whatever you think will help, and I will gladly provide it.

Can anyone help me dubug the issue

0 Replies