next.js
fb1659ae - Update use-router.mdx (#57273)

Commit
1 year ago
Update use-router.mdx (#57273) Minor tweak to the wording of this section to better convey the behavior of `scroll: false`. "Restoration" can be interpreted as reinstating a previously saved scroll position for that route (as it happens when using `router.back()`), while what it actually does is preserving the current scroll position when navigating to a new route, by means of disabling the default "scroll to top" behavior. Related to: https://github.com/vercel/next.js/issues/57258, and https://github.com/vercel/next.js/discussions/47781#discussioncomment-7338499 Co-authored-by: JJ Kasper <jj@jjsweb.site>
Parents
Loading