data-cap
    Preparing search index...

    Variable identityConst

    identity: {
        computeItemIdentity: <Item>(
            item: Item,
            keys: IdentityKeys<Item>,
            path: readonly string[],
            warnings: IdentityWarning[],
        ) => string;
        reconcileArrayInfo: <Item, TInfo>(
            prevInfo: Partial<Record<string, TInfo>> | undefined,
            nextItems: readonly Item[],
            identityKeys: IdentityKeys<Item>,
            touchedIdentities: ReadonlySet<string> | "all",
            makeInfoFor: (item: Item, identityKey: string) => TInfo,
        ) => ReconcileArrayInfoResult<TInfo>;
    } = ...

    Array-identity primitives -- the same ones the standalone runtime uses to reconcile info for an identity-configured array field.

    Type Declaration

    • computeItemIdentity: <Item>(
          item: Item,
          keys: IdentityKeys<Item>,
          path: readonly string[],
          warnings: IdentityWarning[],
      ) => string

      Computes the joined identity key for one array item from its declared identity fields.

    • reconcileArrayInfo: <Item, TInfo>(
          prevInfo: Partial<Record<string, TInfo>> | undefined,
          nextItems: readonly Item[],
          identityKeys: IdentityKeys<Item>,
          touchedIdentities: ReadonlySet<string> | "all",
          makeInfoFor: (item: Item, identityKey: string) => TInfo,
      ) => ReconcileArrayInfoResult<TInfo>

      Reconciles an identity-keyed DataInfo map against a new items array, preserving reference identity for untouched entries.