access 'previous' state of search params?
i'm trying to create a util roughly like
i just can't get a proper type for the withPreviousSearch.
ReturnType<typeof Route.useSearch>
returns any
2 Replies
other-emerald•3mo ago
this might help https://tanstack.com/router/latest/docs/framework/react/guide/type-utilities#type-checking-navigate-options-with-validatenavigateoptions
Type Utilities | TanStack Router React Docs
Most types exposed by TanStack Router are internal, subject to breaking changes and not always easy to use. That is why TanStack Router has a subset of exposed types focused on ease of use with the in...
other-emeraldOP•3mo ago
this could possibly work, thank you