T
TanStack3mo ago
stormy-gold

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.
No description
4 Replies
stormy-gold
stormy-goldOP3mo ago
+ Even if I ignore the type and run it, no runtime error occurs. + It seems to only happen in _pathlessLayout routing.
No description
deep-jade
deep-jade3mo 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.
deep-jade
deep-jade3mo ago
quickest-silver
quickest-silver3mo ago
yep

Did you find this page helpful?