Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

MachineRead

What read returns: the state, the context, and the wait.

Type Parameter
Context
Value
Property Type Description
context Context -
secondsLeft number | undefined Seconds left in the current state’s wait; undefined where it has none.
value Value -

matches(value): boolean

Whether it is in value or a state inside it, as XState’s matches: "patrol" matches { patrol: "watch" }.

Parameter Type
value StateValue

boolean