log2trace-ui - v1.0.0-rc.9
    Preparing search index...

    Function defineSelector

    • Define a selector.

      Type Parameters

      • T

      Parameters

      • id: string

        Name for debugging.

      • deps: number

        OR of the Slice bits compute reads. Reading a slice that is not listed gives stale results.

      • compute: (state: TraceState, previous: T | undefined) => T

        Pure function of the state.

      Returns Selector<T>