couch-kit
    Preparing search index...

    Interface DebugPanelData<S>

    Debug panel data returned by useDebugPanel.

    interface DebugPanelData<S = unknown> {
        actionLog: DebugActionEntry[];
        clearHistory: () => void;
        connectionStatus: string;
        enabled: boolean;
        logAction: (action: unknown, source?: "local" | "remote") => void;
        rtt: number | null;
        stateHistory: DebugStateEntry<S>[];
    }

    Type Parameters

    • S = unknown
    Index
    actionLog: DebugActionEntry[]

    Log of actions (sent and received)

    clearHistory: () => void

    Clear all debug history

    connectionStatus: string

    Current connection status

    enabled: boolean

    Whether debug mode is active

    logAction: (action: unknown, source?: "local" | "remote") => void

    Manually log an action (e.g., from sendAction wrapper)

    rtt: number | null

    Current round-trip time in ms

    stateHistory: DebugStateEntry<S>[]

    History of state changes