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