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•3y ago
You sure? It’s behaving as expected for me.
If you can replicate in a sandbox/blitz that would be helpful
fair-roseOP•3y ago
Dave
StackBlitz
useNavigate types - StackBlitz
Run official live example code for Router Quickstart, created by Tanstack on StackBlitz
wise-white•17mo ago
Hello, Any update on this? I have the same issue and it actually makes development really anoying 😛
adverse-sapphire•17mo ago
can you please provide a minimal complete example using the latest router version?