#It seems like the type inference of the useSearch hook is weird after the 1.121.0 update.

4 messages · Page 1 of 1 (latest)

glass warren
#

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.

#
  • Even if I ignore the type and run it, no runtime error occurs.
  • It seems to only happen in _pathlessLayout routing.
unkempt panther
#

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.

unkempt panther