Defining invoked machine actions outside of declaration. #1296
-
Is there any way of defining the actions of an invoked machine outside of the declaration of said machine on react.
Id like to declare what the action
but this does not work (as it shouldn't) but then is there a way of doing |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You don't want to cross actor boundaries like that. The more reasonable thing to do would be to delegate the execution of that action to the parent, since that is where it's most relevant. And then the child actor can send events to the parent, and the parent can trigger actions (or not) based on that event. |
Beta Was this translation helpful? Give feedback.
You don't want to cross actor boundaries like that. The more reasonable thing to do would be to delegate the execution of that action to the parent, since that is where it's most relevant. And then the child actor can send events to the parent, and the parent can trigger actions (or not) based on that event.