@logixjs/core
    Preparing search index...

    Function externalStore

    • StateTrait.externalStore:

      • Declares that a field is written back from an ExternalStore (external input or Module-as-Source).
      • The field is treated as external-owned: do not write to it from reducers/computed/link/source; use separate fields + derived traits.

      Type Parameters

      • S extends object
      • P
      • T = StateAtPath<S, P>

      Parameters

      • input: {
            coalesceWindowMs?: number;
            equals?: (prev: StateAtPath<S, P>, next: StateAtPath<S, P>) => boolean;
            meta?: Record<string, unknown>;
            priority?: TraitLane;
            select?: (snapshot: T) => StateAtPath<S, P>;
            store: ExternalStore.ExternalStore<T>;
        }

      Returns StateTraitEntry<S, P>