Search Params typings not working as expected
I've read the documentation half a dozen times today already, but clearly something is wrong with my understanding. Why the search params for the ReportRoute are not being inferred as expected? It all works, but if try to use, for example:
within a given component,
search
is typed as any
. The route tree is as below:
2 Replies
wise-white•4mo ago
did you do the module augmentation?
also afaik
@tanstack/zod-adapter
shouldn't be necessary with the latest version of zod, as it supports standard-schema nowunwilling-turquoiseOP•4mo ago
How should I have done that? I merely followed what is in the documentation, maybe I missed something then.
Well, f##k me sideways, that was the solution. Clearly I should have read the code a bit more thoroughly, as it would have saved me two days of head banging...