News for hackers. Stuff that matters.
Re:Statecharts: hierarchical state machines by c01nd01r on Sunday April 26, 2026 @11:08AM (#47910942)
With all respect to xstate, if you don't need complex nested state machines, you should check out robot3.js. The automatic TS type inference makes it pretty handy for the spots where you want a bit of state machine logic.
Re:Statecharts: hierarchical state machines by davidkpiano on Sunday April 26, 2026 @11:32AM (#47911122)
There is also @xstate/store for simple event-driven stores and atoms; just as simple as Zustand + Jotai: https://stately.ai/docs/xstate-store
Re:Statecharts: hierarchical state machines by dkersten on Sunday April 26, 2026 @03:12PM (#47913003)
I’m a big fan of @xstate/store!