Closed franky47 closed 3 days ago
Returning null from the serialize function signals that the associated search param should be removed from the URL.
null
serialize
This would allow clearing invalid states passed to the serialize function.
Edit: this would actually count as a breaking change (the docs did break), so it will be added to the v3 release line.
See related discussion.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Open in Stackblitz
pnpm add https://pkg.pr.new/nuqs@770
commit: 6d6d930
6d6d930
Closing for now, to be reopened for v3.
Returning
null
from theserialize
function signals that the associated search param should be removed from the URL.This would allow clearing invalid states passed to the serialize function.
Edit: this would actually count as a breaking change (the docs did break), so it will be added to the v3 release line.
Tasks
See related discussion.