How to type search params? #1203
Answered
by
m4rvelous252
sanderwapstra
asked this question in
Q&A
-
Hi! How do I type a search param?
Thanks! :) |
Beta Was this translation helpful? Give feedback.
Answered by
m4rvelous252
Jul 16, 2024
Replies: 1 comment 1 reply
-
You can add a // Search params can be added via `query`
router.push({
pathname: `/post/[id]`,
params: {
id: data.id
},
query: {
example: true
}
locale: data.language,
}); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
sanderwapstra
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can add a
query
propertydoc link