T
TanStack15mo ago
exotic-emerald

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?
No description
No description
No description
No description
2 Replies
other-emerald
other-emerald15mo 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 stackblitz
exotic-emerald
exotic-emeraldOP15mo ago
changed to /login/, but it does not work. I'll fork a project to reproduce it on stackblitz soon
No description

Did you find this page helpful?