I'm using the Stately Inspector with my actors and enjoying it. However, I need to pass the inspectEvent to something else: another actor that logs the system's events
I need to extend this:
const rootActor = createActor(rootMachine, { inspect: createBrowserInspector().inspect }
into something like this:
const rootActor = createActor(rootMachine, { inspect: (inspectorEvent) => { loggingActor.send({ type: 'reportEvent', event: inspectorEvent ) // Somehow use createBrowserInspector().inspect here } }
Hopefully I just need easy bit of syntax I haven't been able to work out!