Internal event dispatcher for the engine.
Sends an event to the state machine and optionally logs a debug message to the console.
Any XState event object (must include a type property) to be dispatched to the actor.
type
Optional
Information to log with the event.
Internal event dispatcher for the engine.