Router context losing types infer #1328
-
Hi, After setting up properly the router, I'm trying to access the Vscode can't detect the types and returns it as
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
you have to use https://tanstack.com/router/v1/docs/framework/react/api/router/createRootRouteWithContextFunction if it still does not work, please provide a minimal complete example |
Beta Was this translation helpful? Give feedback.
-
Hi @schiller-manuel, nothing wrong or different I'm doing
This is the
Here is the error: |
Beta Was this translation helpful? Give feedback.
you did not specify the generic type argument
https://tanstack.com/router/v1/docs/framework/react/api/router/createRootRouteWithContextFunction#troutercontext-generic