Why Route.useSearch returns any here?
Hello,
This is probably a stupid question, but I can't find my mistake.
In this route:
data
is of type any
. What am I missing?4 Replies
future-harlequin•7mo ago
your validator should be a
z.object({ myparam: z.string().default("...")})
rare-sapphireOP•7mo ago
hm
what's the difference between @tanstack/router-zod-adapter and @tanstack/zod-adapter?
I realised this example was wrong and I should have used your solution instead of a callback, but it didn't solve my issue
future-harlequin•7mo ago
we renamed to the one without the router prefix
so use that
rare-sapphireOP•7mo ago
ok
thank you!