State
The _state property on a Noun represents a Finite State Machine while the state of a Resource is it's current State.
Switch:
_state:
initial: inactive
states:
inactive:
on:
toggle: active
active:
on:
toggle: inactiveThe syntax of _state is compatible with XState (opens in a new tab) and can be visualized (opens in a new tab) and
edited (opens in a new tab) with Stately (opens in a new tab)