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
adverse-sapphire•9mo ago
your validator should be a
z.object({ myparam: z.string().default("...")})molecular-blueOP•9mo 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
adverse-sapphire•9mo ago
we renamed to the one without the router prefix
so use that
molecular-blueOP•9mo ago
ok
thank you!