Context, but reactive #387
Unanswered
brendan-morin
asked this question in
Q&A
Replies: 0 comments
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.
-
What's the right pattern to enable a more reactive context? For example, let's say I set user info via load function as context at root level and display a name in the sidebar.
Then, in user profile page, a user can change their name. The sidebar doesn't seem to update, even when running invalidateAll, but a full page refresh does seem to work. I think there are probably a few ways to go about but I'm looking for advice on what sensible patterns are here to make this properly reactive. (e.g. is PersistedState more reasonable in this case, or do I just need to make some adjustments to how I invalidate and use context)?
Beta Was this translation helpful? Give feedback.
All reactions