monitor-api - v1.3.0
    Preparing search index...

    Interface IReactCollector

    Public API exposed by the React collector.

    interface IReactCollector {
        onCommit: SSignal<RenderEntry | null>;
        snapshot: SSignal<ReactSnapshot>;
        clearLog(): void;
        destroy(): void;
        setSlowThreshold(ms: number): void;
        start(): void;
        stop(): void;
    }
    Index

    Properties

    onCommit: SSignal<RenderEntry | null>

    Signal set to the latest render entry, or null before any render is captured.

    snapshot: SSignal<ReactSnapshot>

    Signal containing retained render history and derived statistics.

    Methods

    • Clears retained render entries, component statistics, and commit count.

      Returns void

    • Stops the collector and releases owned resources.

      Returns void

    • Updates the slow render threshold in milliseconds.

      Parameters

      • ms: number

      Returns void

    • Hooks into the React DevTools global hook when running in a browser.

      Returns void