useStateMachine icon indicating copy to clipboard operation
useStateMachine copied to clipboard

matches function on state prototype

Open cassiozen opened this issue 4 years ago • 0 comments

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.

cassiozen avatar Jun 10 '21 01:06 cassiozen