( root: AnyStateNode, preInitialState: AnyMachineSnapshot, actorScope: AnyActorScope, initEvent: AnyEventObject, internalQueue: AnyEventObject[] )
| 982 | type Microstep = readonly [AnyMachineSnapshot, ExecutableActionObject[]]; |
| 983 | |
| 984 | export function initialMicrostep( |
| 985 | root: AnyStateNode, |
| 986 | preInitialState: AnyMachineSnapshot, |
| 987 | actorScope: AnyActorScope, |
| 988 | initEvent: AnyEventObject, |
| 989 | internalQueue: AnyEventObject[] |
| 990 | ): Microstep { |
| 991 | return microstep( |
| 992 | [ |
| 993 | { |
| 994 | target: [...getInitialStateNodes(root)], |
| 995 | source: root, |
| 996 | reenter: true, |
| 997 | actions: [], |
| 998 | eventType: null as any, |
| 999 | toJSON: null as any |
| 1000 | } |
| 1001 | ], |
| 1002 | preInitialState, |
| 1003 | actorScope, |
| 1004 | initEvent, |
| 1005 | true, |
| 1006 | internalQueue |
| 1007 | ); |
| 1008 | } |
| 1009 | |
| 1010 | /** https://www.w3.org/TR/scxml/#microstepProcedure */ |
| 1011 | function microstep( |
no test coverage detected
searching dependent graphs…