Skip to content

Handling events and atomic UI update #1302

Answered by Andarist
universse asked this question in General
Discussion options

You must be logged in to vote

Just wondering if there is similar concept for XState, whereby multiple machines/services can respond to the same event, instead of having to call send for each machine services.

You can use autoForward, but it is strongly advisable that you actually forward events between machines manually. You can also share machines addresses (their sessions ids) so you can target events more directly, rather than having to pass events through all the layers each time.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by universse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants