Live demo: nuqs-playground.vercel.app
Playground for the nuqs library.
Spot the difference between client-side and server-side rendering.
If you want to trigger a re-render and access the search params via server-side,
you must set shallow: false
Read more about it here.
const [keyword, setKeyword] = useQueryState("keyword", parseAsString);
<input
onChange={(e) =>
setKeyword(e.target.value, {
shallow: false,
})
}
/>;