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

WaitConfig

Seconds a state holds before it moves on, counted by the fixed step.

Type Parameter
Context
Property Type Description
seconds number | ((args) => number) The seconds, or a function of the context that gives them, read each step, so a round’s countdown comes from its own props.
then string | TransitionConfig<Context> The state it goes to once the seconds are spent, or a transition, such as { target: "watch", reenter: true }, which starts its own state over.