<Link> Scroll Behavior
Unanswered
Gatien posted this in #help-forum
GatienOP
Hello,
I recently upgraded my application and noticed a change in the default scroll restoration behavior when using the
When a user navigates from a scrolled position on Page A to Page B, the application now performs a visible scroll transition from the previous scroll position down to the top of Page B (
I want to restore the pre-update behavior, where navigating to a new page would result in an instantaneous jump to the very top of the target page, with absolutely no visible scroll animation.
Is there a global configuration setting within Next.js that allows us to set the default behavior of the scroll prop on
Thank you in advance for any insights!
I recently upgraded my application and noticed a change in the default scroll restoration behavior when using the
<Link> component for client-side navigation.When a user navigates from a scrolled position on Page A to Page B, the application now performs a visible scroll transition from the previous scroll position down to the top of Page B (
(0, 0)).I want to restore the pre-update behavior, where navigating to a new page would result in an instantaneous jump to the very top of the target page, with absolutely no visible scroll animation.
Is there a global configuration setting within Next.js that allows us to set the default behavior of the scroll prop on
<Link> ?Thank you in advance for any insights!