search params in next js
Answered
Seppala Siberian Sleddog posted this in #help-forum
Seppala Siberian SleddogOP
If I have a route that I want to append a search param to it is there a way to do it from next js directly or I have to add a logic to check if there is already a search param or not and change the query string based on it?
Answered by Ray
you have to do it yourself or try [nuqs](https://github.com/47ng/nuqs) package
2 Replies
@Seppala Siberian Sleddog If I have a route that I want to append a search param to it is there a way to do it from next js directly or I have to add a logic to check if there is already a search param or not and change the query string based on it?
you have to do it yourself or try [nuqs](https://github.com/47ng/nuqs) package
Answer
@Ray you have to do it yourself or try [nuqs](<https://github.com/47ng/nuqs>) package
Seppala Siberian SleddogOP
thanks