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
other-emerald•15mo 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 stackblitzexotic-emeraldOP•15mo ago
changed to /login/, but it does not work.
I'll fork a project to reproduce it on stackblitz soon
