xstateFunctionsgetStateNodesgetStateNodes CallablegetStateNodes<TContext, TEvent>(stateNode: AnyStateNode, stateValue: StateValue): AnyStateNode[]Returns the state nodes represented by the current state value.Type parametersTContext: MachineContextTEvent: EventObjectParametersstateNode: AnyStateNodestateValue: StateValueThe state value or State instanceReturns AnyStateNode[]
Returns the state nodes represented by the current state value.