T
TanStack7mo ago
extended-salmon

Access react context set in a inner component in loaders

I have some global context that works fine with routewithcontext. I have a container component that provides a context to all child routes. How do i access the context in route loaders?
No description
1 Reply
extended-salmon
extended-salmonOP7mo ago
The above screenshot contains an example. This is a component of one of a route. I need to access context in child routes.

Did you find this page helpful?