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

MachineFields

What a machine’s trait holds besides its context.

Type Parameter
Value
Property Type Description
history MachineHistory Where each history state goes back to.
paused Record<string, number> The seconds each wait was left at before it ended, by its state’s id, which a history state brings back.
state Value The state it is in, as XState writes a value.
waited number Seconds spent in the current state’s wait; 0 where it has none.