Right now the state value is always a string, but since we plan to introduce hierarchical fsms in the future (#21), state values might be represented differently.
Adding a 'matches' function on the machine state prototype (like XState) will give users a consistent and easy way to derive ui from the machine state.
Right now the state value is always a string, but since we plan to introduce hierarchical fsms in the future (#21), state values might be represented differently.
Adding a 'matches' function on the machine state prototype (like XState) will give users a consistent and easy way to derive ui from the machine state.