It seems like the type inference of the useSearch hook is weird after the 1.121.0 update.
After the update, I got a type error while executing the
tsc command, so I checked and found that the return type of useSearch was inferred as any. Are there more users who had the same problem as me? Please let me know if I did something wrong.
4 Replies
fascinating-indigoOP•6mo ago
+ Even if I ignore the type and run it, no runtime error occurs.
+ It seems to only happen in
_pathlessLayout routing.
optimistic-gold•6mo ago
I'm having issues with path parameter typing on
_pathlessLayout routes after updating as well. They're not including parent route path parameters anymore. I wonder if it's related.optimistic-gold•6mo ago
It seems like it may have just been fixed: https://github.com/TanStack/router/pull/4389
blank-aquamarine•6mo ago
yep