Next.js Discord

Discord Forum

search params in next js

Answered
Seppala Siberian Sleddog posted this in #help-forum
Open in Discord
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
View full answer

2 Replies