TanStackT
TanStack12mo ago
11 replies
good-rose

zodValidator in Route.useSearch return different types

According to this https://tanstack.com/router/latest/docs/framework/react/guide/search-params#zod
I should be able to access my variables with Route.useSearch() but whenever i do it, it gives me the types of parse, input and output.

Is this normal?
Similar to how TanStack Query made handling server-state in your React applications a breeze, TanStack Router aims to unlock the power of URL search params in your applications. Why not just use URLSe...
Search Params | TanStack Router React Docs
Was this page helpful?