Derived Context #2111
Replies: 2 comments 3 replies
-
|
Caveat: |
Beta Was this translation helpful? Give feedback.
-
|
As much as this would be a killer feature, it means that Maybe a more robust solution is for |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've been really enjoying Svelte's derived stores that update their values automatically when the value of a parent store changes. I was wondering if there was a similar pattern that could be used in xstate context? Ideally, there would be a way to subscribe to a part of the context and calculate a derived value for whenever that part of the context changes. Has anyone modeled something like this before?
Edit: found a couple mentions of derived context in the spectrum chat
Beta Was this translation helpful? Give feedback.
All reactions