Infer context types in authenticated routes
Hi. I am using this example from tanstack router https://tanstack.com/router/latest/docs/framework/react/examples/authenticated-routes-context
I'd like to change context type so the user in authenticated routes is not possibly undefined. In this example its
How can I do it?
I'd like to change context type so the user in authenticated routes is not possibly undefined. In this example its
dashboard.tsx Since we check user before load I'd like to overwrite user type.How can I do it?
An example showing how to implement Authenticated Routes Context in React Router