Function
createDoneActorEvent
(
invokeId: string,
output?: unknown
)
Source from the content-addressed store, hash-verified
| 39 | * @param output The data to pass into the event |
| 40 | */ |
| 41 | export function createDoneActorEvent( |
| 42 | invokeId: string, |
| 43 | output?: unknown |
| 44 | ): DoneActorEvent { |
| 45 | return { |
| 46 | type: `xstate.done.actor.${invokeId}`, |
| 47 | output, |
| 48 | actorId: invokeId |
| 49 | }; |
| 50 | } |
| 51 | |
| 52 | export function createErrorActorEvent( |
| 53 | id: string, |
Used in the wild real call sites across dependent graphs
searching dependent graphs…