T
TanStack•7mo ago
adverse-sapphire

Modifying the Router Context

How do i modify the router context in the component. Not in the beforeLoad() or loader().
3 Replies
foreign-sapphire
foreign-sapphire•7mo ago
not possible why would you want to do that?
adverse-sapphire
adverse-sapphireOP•7mo 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 🤔
foreign-sapphire
foreign-sapphire•7mo 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?