You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using custom declarative actions, I can access the current state from meta.state passed to exec(context, event, meta) function. But I cannot do the same with built-in action creators like actions.pure((context, event, meta) => { /* ... */ }).
I hope the same meta object with state can be exposed to built-in actions.
Use case
"log" action is triggered at entry of each state node. Within the action I want to send the current state of this machine to other party of interest. So I need to use action.pure to dynamically generate action.send. Currently there's no way to achieve this effect.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
When using custom declarative actions, I can access the current state from
meta.state
passed toexec(context, event, meta)
function. But I cannot do the same with built-in action creators likeactions.pure((context, event, meta) => { /* ... */ })
.I hope the same
meta
object withstate
can be exposed to built-in actions.Use case
"log" action is triggered at entry of each state node. Within the action I want to send the current state of this machine to other party of interest. So I need to use
action.pure
to dynamically generateaction.send
. Currently there's no way to achieve this effect.Beta Was this translation helpful? Give feedback.
All reactions