T
TanStack3y ago
fair-rose

Is the useNavigate hook supposed to not be typesafe?

useNavigate doesn't seem to have any types on it from the registered router and getting any on the search params and to properties. useRouter.navigate seems to be fine though.
4 Replies
ugly-tan
ugly-tan3y ago
You sure? It’s behaving as expected for me. If you can replicate in a sandbox/blitz that would be helpful
fair-rose
fair-roseOP3y ago
Dave
StackBlitz
useNavigate types - StackBlitz
Run official live example code for Router Quickstart, created by Tanstack on StackBlitz
wise-white
wise-white17mo ago
Hello, Any update on this? I have the same issue and it actually makes development really anoying 😛
adverse-sapphire
adverse-sapphire17mo ago
can you please provide a minimal complete example using the latest router version?

Did you find this page helpful?