How to use multiple params in url?
Answered
Ccorgz posted this in #help-forum
CcorgzOP
I have the structure as the image attached, and I use the [search] param in it. Bu I need more variables in that same route, like using '?page=2' for example.
So, how should I pass the params and how should I to receive them?
Thanks already for any help.
So, how should I pass the params and how should I to receive them?
Thanks already for any help.
Answered by joulev
Use search params then, see the searchParams prop of Page components and useSearchParams
2 Replies
@Ccorgz I have the structure as the image attached, and I use the [search] param in it. Bu I need more variables in that same route, like using '?page=2' for example.
So, how should I pass the params and how should I to receive them?
Thanks already for any help.
Use search params then, see the searchParams prop of Page components and useSearchParams
Answer
@joulev Use search params then, see the searchParams prop of Page components and useSearchParams
CcorgzOP
Thank u very much, that did solved my problem.