T
TanStack2y ago
fair-rose

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
optimistic-gold
optimistic-gold2y 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
fair-rose
fair-roseOP2y 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?