Error parsing through Tanstack Router standard schema #1111
Unanswered
missile-developer
asked this question in
General
Replies: 1 comment 3 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 |
Beta Was this translation helpful? Give feedback.
3 replies
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?
Beta Was this translation helpful? Give feedback.
All reactions