The following snippet is an entry: action, I am using inspect to log every inspEvent, and can see the action being called in the log ([Debug] StateMachineService @xstate.action actor: quickPickMachine action.type: sendQuickPickMachineDoneEventToParent), and I can see the logger message in the log ([Debug] sendQuickPickMachineDoneEventToParent, received event type is xstate.done.actor.quickPickMachineActor, sendingTo x:0). But I don't see the 'QUICKPICK_DONE' event in the inspect stream, and the parent machine is not reacting as expected (transitioning). So I must have done something wrong in writing the sendTo. Could someone kindly point out what I've done wrong? TIA!
sendQuickPickMachineDoneEventToParent: ({ context, event }) => {
context.logger.log(
`sendQuickPickMachineDoneEvent, received event type is ${event.type}, sendingTo ${context.parent.id}`,
LogLevel.Debug,
);
sendTo(context.parent, {
type: 'QUICKPICK_DONE',
});
},