Closed hugotiger closed 1 month ago
Ah yes, that would make sense for the serializer to follow this setting. If you want to open a PR, that'd be great, thanks!
Ah yes, that would make sense for the serializer to follow this setting. If you want to open a PR, that'd be great, thanks!
Awesome! I've opened https://github.com/47ng/nuqs/pull/642 where I seem to have fixed it, but haven't figured out how to type it properly yet so it has some @ts-expect-error
directives. Can continue looking into it when I have some more time!
:tada: This issue has been resolved in version 1.19.2 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Context
What's your version of
nuqs
?Next.js information (obtained by running
next info
):Are you using:
basePath
option in your Next.js configwindowHistorySupport
flag in your Next.js configDescription
The
clearOnDefault
option does not seem to work when usingcreateSerializer
. Seeing as TS was happy I expected it to work. I love this feature from the hooks so would be amazing getting it to work!Let me know if I should attempt adding/fixing this and I'll take a stab at it :)
Reproduction
I skipped creating a CodeSandbox playground since it's very easy to explain. Let me know if I still should create one 😄