T
TanStack3w ago
ugly-tan

No auto complete in vs code

Hi. I have set up my routes according to the doc. But when I use useNavigate and navigate(), it doesn't show the auto complete suggestions of the path names. Am I missing something? Thanks.
No description
1 Reply
ugly-tan
ugly-tanOP3w ago
oh it seems I missed this: // Register the router instance for type safety declare module '@tanstack/react-router' { interface Register { router: typeof router } } it works now

Did you find this page helpful?