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

docs: Add example on query parameters in route handlers #55789

Merged

Conversation

joulev
Copy link
Contributor

@joulev joulev commented Sep 22, 2023

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.

Signed-off-by: Vu Van Dung <me@joulev.dev>
@ijjk
Copy link
Member

ijjk commented Sep 22, 2023

Allow CI Workflow Run

  • approve CI run for commit: eab4dd3

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

1 similar comment
@ijjk
Copy link
Member

ijjk commented Sep 22, 2023

Allow CI Workflow Run

  • approve CI run for commit: eab4dd3

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

@ijjk
Copy link
Member

ijjk commented Sep 22, 2023

Allow CI Workflow Run

  • approve CI run for commit: 1cbb813

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

Copy link

@orca-security-us orca-security-us bot left a 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 Passed Secrets high 0   medium 0   low 0   info 0 View in Orca

Signed-off-by: Vu Van Dung <me@joulev.dev>
@kodiakhq kodiakhq bot merged commit 0b74f51 into vercel:canary Sep 24, 2023
58 checks passed
@joulev joulev deleted the docs-example-searchparams-route-handlers branch September 24, 2023 15:23
@github-actions github-actions bot added the locked label Oct 9, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants