Function: attachJourneyDevtools()
@rxova/journey-devtools-bridge
@rxova/journey-devtools-bridge / attachJourneyDevtools
function attachJourneyDevtools(machine, options?): () => void;Defined in: bridge.ts:51
Attaches a journey machine to the devtools extension over
window.postMessage: registers the machine, streams snapshots and
observations, and answers operation invokes (gated by mutationsEnabled).
Returns a detach function; both attach and detach are safe no-ops outside
the browser or when the bridge is disabled.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
machine | JourneyDevtoolsAttachableMachine |
options | JourneyDevtoolsBridgeOptions |
Returns
Section titled “Returns”() => void