enforce route context type for route segments #3816
-
a very common route setup is
Is there any way to have your own router context (or even whole router_ for just the
For now I have all of them in my root route and need to add extra code to every route to validate that they are there. |
Beta Was this translation helpful? Give feedback.
Answered by
schiller-manuel
Mar 20, 2025
Replies: 1 comment 2 replies
-
sounds like you should just return them from /app/route.tsx' |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
csenio
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sounds like you should just return them from /app/route.tsx'
beforeLoad
. this will make all childroutes inherit those context values