Replies: 1 comment 3 replies
-
The current way is to give the invocation an invoke: {
src: (context) => /* ... */,
id: 'child'
},
on: {
someEvent: {
// transition that changes `context`
actions: [
sendTo('child', (ctx) => ({ type: 'parentUpdate', data: ctx }))
]
}
} I recommend:
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, we have a machine which at a certain state invokes a service. That service needs to be aware of context changes as it contains an interval and based on a specific context value, it needs to respond accordingly. When we invoke the service like so:
it has the initial values of the context but they never update. We update them with actions and the actions fire correctly updating the value. What is the right way to make a service aware of context changes?
Beta Was this translation helpful? Give feedback.
All reactions