MaximGB/re-state a re-frame supplimentary library routing dispatched events via statecharts implementing finite state atomata

Hello, DaveWM

Thanks for the response. At the time of writing the library I didn’t know about re-frame related project with the same name. I’ll probably change the library name shortly, though I’m not sure it will be version-vise correct, since I baldly have released 1.0.0 already.

Regarding nested state machines. Well right before release I decided to not include a functionality allowing to spawn and control other machines, it was implemented using re-frame effects/co-effects and frankly I thought its usefulness is limited. Can you give me a couple of use cases you might have for the feature? Also being a statechart implementation XState library (upon which re-state is build over) allows one to define nested states. Maybe that’s what you need. As for visualization, once again XState might help here. If you convert a machine config from CLJS to JS and pass the result to XState visualizer, which is available online, then you will have what you need.

1 Like