-
In Redux, multiple reducers can handle the same dispatched action. And I can connect different parts of the React UI to different reducers so that re-rendering is more atomic. Just wondering if there is similar concept for XState, whereby multiple machines/services can respond to the same event, instead of having to call Currently I can think of 2 approaches:
Would love to hear your thoughts on this. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You can use |
Beta Was this translation helpful? Give feedback.
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.