Prometheus Entity Management API
    Preparing search index...

    Options for createLoroProvider.

    interface LoroProviderOptions {
        channel: LoroChannel;
        loadLoro?: () => Promise<{ LoroDoc: unknown }>;
        onError?: (error: Error, operation: "start" | "import" | "export") => void;
        peerId?: number | bigint | `${number}`;
        registerMergeStrategies?: boolean;
    }
    Index
    channel: LoroChannel

    The binary transport channel for exchanging Loro snapshots with peers.

    loadLoro?: () => Promise<{ LoroDoc: unknown }>

    Optional bundler-visible loader for browser applications. Supply () => import("loro-crdt") when the bundler cannot resolve the provider's runtime-only peer import. Node consumers can omit this.

    onError?: (error: Error, operation: "start" | "import" | "export") => void

    Receives import, export, and lifecycle failures instead of hiding them.

    peerId?: number | bigint | `${number}`

    Stable Loro peer identity. Supplying distinct numeric IDs makes concurrent same-field resolution reproducible: Loro's LWW map tie-break chooses the higher peer ID when logical counters are equal.

    registerMergeStrategies?: boolean

    Whether to automatically register createLoroMergeStrategy for each entity type this provider manages. This replaces the graph's default LWW strategy with CRDT-based resolution for those types.

    true