DEV Community

Discussion on: Baahu: the state machine-based SPA framework

Collapse
 
mrjjwright profile image
John Wright • Edited

Really clean great reasoning and creation of a framework.

How do finite state machine driven frameworks like Baahu and Xstate conceptualize derived state? One of the principles of Mobx, Vue, SolidJS etc is minimal state, derive, derive, derive. These derivations are written in plain (or sometimes memoized or computed) functions that are called from the bottom of the tree reaction functions to state changes, such as React Mobx observer renders or SolidJS render effects.

If too much state is bad, how does a FSM driven approach keep top level state minimal and derived state functional? Not doubting, I have wondered about this.