Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update use-router.mdx #57273

Merged
merged 2 commits into from
Sep 24, 2024
Merged

Update use-router.mdx #57273

merged 2 commits into from
Sep 24, 2024

Conversation

alessiomaffeis
Copy link
Contributor

@alessiomaffeis alessiomaffeis commented Oct 23, 2023

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: #57258, and #47781 (reply in thread)

Minor tweak to the wording of this section to better convey the behavior of "scroll: false"
@alessiomaffeis alessiomaffeis requested review from a team as code owners October 23, 2023 16:45
@alessiomaffeis alessiomaffeis requested review from timeyoutakeit and StephDietz and removed request for a team October 23, 2023 16:45
@balazsorban44 balazsorban44 added Documentation Related to Next.js' official documentation. and removed area: documentation labels Apr 17, 2024
@alessiomaffeis
Copy link
Contributor Author

Any thoughts on this? @timeyoutakeit @StephDietz

@ijjk ijjk enabled auto-merge (squash) September 24, 2024 22:09
@ijjk ijjk merged commit fb1659a into vercel:canary Sep 24, 2024
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Related to Next.js' official documentation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants