type inferred incorrect on getRouteApi or useSearch({ from: '/some/route/path' })
searchParams2 and searchParams3 both has a empty object type inferred unioned with the correct type.
How to make sure the searchParams2/searchParams3 can get the correct typed object from search schema?




2 Replies
optimistic-gold•2y ago
I think the route id
/login/index is wrong
it should be /login/
if this does not fix the issue, please provide a minimal complete example by forking one of the existing examples on stackblitzfair-roseOP•2y ago
changed to /login/, but it does not work.
I'll fork a project to reproduce it on stackblitz soon
