State inside Route Context #887
Unanswered
Walter-Sparrow
asked this question in
Q&A
Replies: 1 comment 1 reply
-
maybe |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there any way to have a state inside the Route Context? I have tried using it as React Context but changing a state with setState does not trigger rerender of child route (because it has the old value).
Example (Context setup):
Component that will trigger the change:
Root route where I expect the state change:
Beta Was this translation helpful? Give feedback.
All reactions