Skip to content

Docs: Update useLinkStatus API reference #78022

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

Merged
merged 5 commits into from
Apr 10, 2025
Merged

Conversation

delbaoliveira
Copy link
Contributor

@delbaoliveira delbaoliveira commented Apr 10, 2025

Updating the docs after playing around with useLinkStatus: vercel/next-app-router-playground#184
Closes: https://linear.app/vercel/issue/DOC-4514/update-docs

Main changes:

  • Update introduction
  • Simplify example
  • Add example for gracefully handling fast navigations (avoiding UI flash)

There are a few things that made the example unnecessarily complex imo:
- Menubar inside page instead of layout
- Suspense boundary wrapping the menubar which would blow up while it's loading.
- Tying it to search params, whereas it can apply to other use cases.
@ijjk ijjk added created-by: Next.js DevEx team PRs by the DX team. Documentation Related to Next.js' official documentation. labels Apr 10, 2025
@delbaoliveira delbaoliveira requested a review from gaojude April 10, 2025 12:36
@delbaoliveira delbaoliveira merged commit c94753c into canary Apr 10, 2025
58 checks passed
@delbaoliveira delbaoliveira deleted the docs-uselinkstatus branch April 10, 2025 13:30
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
created-by: Next.js DevEx team PRs by the DX team. Documentation Related to Next.js' official documentation. locked
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants