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
On every state which uses an invoked actor, I have a transition like this:
error: {// asynchronous error in one of our invoked actorsactions: "console_error",target: ".error",},
and then, in addition, on every invoked actor, I have a transition like this:
onError: {// synchronous error in this invoked actoractions: "console_error",target: ".error",},
So if I have 2 states, each of which invokes 3 actors, then I have to use a total of eight transitions just to say "these 2 states should do such-and-such if there's an error".
That's a lot of boilerplate which creates a huge array of transitions that doesn't look very good in the Stately Editor autolayout, to boot.
Is there any way to have something like an "error:*" transition on a state which has invoked actors, to just have unified handling of onError for every invoked actor?
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.
Uh oh!
There was an error while loading. Please reload this page.
-
On every state which uses an invoked actor, I have a transition like this:
and then, in addition, on every invoked actor, I have a transition like this:
So if I have 2 states, each of which invokes 3 actors, then I have to use a total of eight transitions just to say "these 2 states should do such-and-such if there's an error".
That's a lot of boilerplate which creates a huge array of transitions that doesn't look very good in the Stately Editor autolayout, to boot.
Is there any way to have something like an
"error:*"
transition on a state which has invoked actors, to just have unified handling ofonError
for every invoked actor?Beta Was this translation helpful? Give feedback.
All reactions