DialCache TypeScript API - v0.28.0
    Preparing search index...

    Type Alias ShadowMismatchDiff<Value>

    ShadowMismatchDiff: (
        cachedValue: Value,
        sourceValue: Value,
    ) => readonly ShadowMismatchEntry[]

    Replaces the built-in JSON difference computation for confirmed-mismatch warnings, which runs only when shadow.mismatchLogging.diff is above "off". Inputs are borrowed snapshots. Like comparators, hooks must be synchronous, deterministic, side-effect-free, non-mutating, and bounded. A throw, a promise-like or a non-array logs null for the paths and the diff; DialCache never falls back to the built-in computation. Entries are logged as the hook returns them.

    Type Parameters

    • Value

    Type Declaration