MCPcopy
hub / github.com/statelyai/xstate / stopChildren

Function stopChildren

packages/core/src/stateUtils.ts:1786–1799  ·  view source on GitHub ↗
(
  nextState: AnyMachineSnapshot,
  event: AnyEventObject,
  actorScope: AnyActorScope
)

Source from the content-addressed store, hash-verified

1784}
1785
1786function stopChildren(
1787 nextState: AnyMachineSnapshot,
1788 event: AnyEventObject,
1789 actorScope: AnyActorScope
1790) {
1791 return resolveActionsAndContext(
1792 nextState,
1793 event,
1794 actorScope,
1795 Object.values(nextState.children).map((child: any) => stopChild(child)),
1796 [],
1797 undefined
1798 );
1799}
1800
1801function selectTransitions(
1802 event: AnyEventObject,

Callers 1

macrostepFunction · 0.85

Calls 2

stopChildFunction · 0.90
resolveActionsAndContextFunction · 0.85

Tested by

no test coverage detected