-
Notifications
You must be signed in to change notification settings - Fork 27.2k
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
docs: Add example on query parameters in route handlers #55789
docs: Add example on query parameters in route handlers #55789
Conversation
Signed-off-by: Vu Van Dung <me@joulev.dev>
Allow CI Workflow Run
Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer |
1 similar comment
Allow CI Workflow Run
Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer |
Allow CI Workflow Run
Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Orca Security Scan Summary
Status | Check | Issues by priority | |
---|---|---|---|
Passed | Secrets | 0 0 0 0 | View in Orca |
Signed-off-by: Vu Van Dung <me@joulev.dev>
docs/02-app/01-building-your-application/01-routing/10-route-handlers.mdx
Outdated
Show resolved
Hide resolved
docs/02-app/01-building-your-application/01-routing/10-route-handlers.mdx
Outdated
Show resolved
Hide resolved
…andlers.mdx Co-authored-by: Lee Robinson <me@leerob.io>
Why?
There is already an example of handling query parameters (
searchParams
) in route handler, but it's quite hidden (in Opting out of caching). It made it hard for many developers to figure out how to do that: there are several people who couldn't find that section in the documentation. (Linked are messages in the Next.js Discord server.)Therefore this PR adds an example to the route handler documentation on how to do that, so developers can take reference more easily.