Skip to content
Discussion options

You must be logged in to vote

check out https://tanstack.com/router/latest/docs/api/router/RouteOptionsType#validatesearch-method

Optionally, the parameter type can be tagged with the SearchSchemaInput type like this: (searchParams: TSearchSchemaInput & SearchSchemaInput) => TSearchSchema. If this tag is present, TSearchSchemaInput will be used to type the search property of and navigate() instead of TSearchSchema. The difference between TSearchSchemaInput and TSearchSchema can be useful, for example, to express optional search parameters.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Horrih
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants