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

Add caveat note about shallow routing with middleware #39154

Merged
merged 2 commits into from
Jul 29, 2022

Conversation

ijjk
Copy link
Member

@ijjk ijjk commented Jul 29, 2022

This adds a note about a caveat with shallow routing and middleware as previously when shallow was used but the route didn't match the new route being transitioned to the shallow flag would be ignored but this doesn't work with middleware.

Documentation / Examples

  • Make sure the linting passes by running pnpm lint
  • The examples guidelines are followed from our contributing doc

Closes: #38595

@ijjk ijjk marked this pull request as ready for review July 29, 2022 01:20
@ijjk ijjk merged commit cf729ed into vercel:canary Jul 29, 2022
@ijjk ijjk deleted the docs/middleware-shallow-note branch July 29, 2022 02:28
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
created-by: Next.js team PRs by the Next.js team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rewrite in middleware causes shallow routing to break.
2 participants