T
TanStack•4mo ago
rival-black

Modifying the Router Context

How do i modify the router context in the component. Not in the beforeLoad() or loader().
3 Replies
fascinating-indigo
fascinating-indigo•4mo ago
not possible why would you want to do that?
rival-black
rival-blackOP•4mo ago
I want a value change in the child route to be accessible in the parent so other sibling route will have access to it 🤔
fascinating-indigo
fascinating-indigo•4mo ago
sounds like that shoud be a react context then? or would you want to access that value from a router lifecycle method (e.g. beforeLoad, loader) instead of a component in those other routes?

Did you find this page helpful?