How to get route context correctly typed?
Hi everyone,
could someone help me understand how
match.routeContext
gets its type? I was reading the documentation about "Processing Accumulated Route Context" and from my understanding the type should extend the Router Context defined in createRootRouteWithContext
. But I get an error if I try to access the properties that I define in Router Context. Should I define the correct type somewhere else?
Edit: I made a codesandbox
This is my code:

0 Replies