Skip to content
Version: xstate@5.0.0

StateValue type​

The string or object representing the state value relative to the parent state node.

Signature:

export type StateValue = string | StateValueMap;

References: StateValueMap

Remarks​

  • For a child atomic state node, this is a string, e.g., "pending".

  • For complex state nodes, this is an object, e.g., { success: "someChildState" }.