menu

Statecharts

Statecharts are a precise, visual way of modeling the behaviour of complex reactive systems. They describe how things work, and can help you get your code doing exactly what you want.

Channels
Team

Supervising machines with Redux

March 16, 2020 at 12:26pm

Supervising machines with Redux

March 16, 2020 at 12:26pm (Edited 7 months ago)
I've been experimenting with Redux as a supervisor to be able to send events to machines anywhere in the app

March 16, 2020 at 12:26pm
like-fill
1
  • reply
  • like
Essentially all events (except for machine internal events) are sent first to the Redux store where the reducer passes it to the right machines.
Edited
  • reply
  • like
Edited
like-fill
1
  • reply
  • like
Really cool; we can probably generalize this pattern (or similar) and put it in the docs!
like-fill
3
  • reply
  • like

July 10, 2020 at 4:08pm
This is excellent, thank you so much.
like-fill
1
  • reply
  • like