"raise" isn't supported within entry actions #4326
-
I'm the author of the "Reactive Internet Programming-SCXML in action" book and I've tried X-STATE to implement some of the case studies in my book. X-STATE is amazing! Congratulations... const X = X_STATE.createMachine({ |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey, you're close! So instead, the entry action should look like: // creates an action object like { type: 'xstate.raise', event: { type: 'e2 } }
entry: raise({ type: 'e2' }) |
Beta Was this translation helpful? Give feedback.
Hey, you're close!
raise(...)
is an action creator; it doesn't imperatively execute the action.So instead, the entry action should look like: