vapor-chamber API reference - v1.3.0
    Preparing search index...

    Type Alias SyncOptions

    type SyncOptions = {
        channel: string;
        filter?: (cmd: Command) => boolean;
        onReceive?: (cmd: Command) => boolean | void;
    }
    Index

    Properties

    channel: string

    BroadcastChannel name. All tabs using the same name receive each other's commands.

    'vapor-chamber:app'
    
    filter?: (cmd: Command) => boolean

    Which actions to broadcast to other tabs. Default: all successful dispatches.

    onReceive?: (cmd: Command) => boolean | void

    Called when a command arrives from another tab, before re-dispatching it. Return false to suppress re-dispatch.