Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Unified/D.R.Y. handling of errors from any of a state's invoked actors?#5338

Unanswered
James-E-A asked this question inQ&A
Discussion options

On every state which uses an invoked actor, Ihave 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, Ihave 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 ofeight 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?

You must be logged in to vote

Replies: 0 comments

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
1 participant
@James-E-A

[8]ページ先頭

©2009-2025 Movatter.jp