@tanstack/zod-adapter, fallback type-safe issue
fallback and zodValidator functions from @tanstack/zod-adapter to ensure better type safety and a smoother navigation API experience.However, I’ve run into an issue: when I use this pattern, Route.useSearch() is unable to infer my search param types. If I switch back to a standard Zod schema, the type safety works as expected. Even though the docs recommend using validateSearch with fallback and zodValidator, I can't get the types to sync.
Does anyone know why this is happening or how to fix it?"
Doc link: https://tanstack.com/router/latest/docs/framework/react/guide/search-params#zod