Error parsing through Tanstack Router standard schema #1111
Unanswered
missile-developer
asked this question in
General
Replies: 2 comments 4 replies
|
Those parsers are unfortunately not supported for type-safe linking in TanStack Router due to how deserialisation is done there (at the root router level, and using a single interface for all search params). Only parsers that parse from strings, numbers, booleans or JSON are supported for type-safe linking. TanStack Router recommends custom data types be encoded in JSON format. See the caveats in the docs: https://nuqs.47ng.com/docs/adapters#type-safe-routing-via-validatesearch |
3 replies
|
I'm not sure to have all constraints about the deserialisation issue in TanStack Router but to be sure you know it, the framework allow to customise search param serialization (maybe it is the missing stuff you need to raise your caveat) |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I think I found that it error when I try to parse using parseAsArray or parseAsIsoDateTime. Any limitations on standard schema?
All reactions