@adobe/data - v0.10.30
    Preparing search index...

    Interface TransactionResult<C>

    interface TransactionResult<C = unknown> {
        changedArchetypes: Set<number>;
        changedComponents: Set<string>;
        changedEntities: Map<number, null | EntityUpdateValues<C>>;
        intermediate: boolean;
        persistent: boolean;
        redo: TransactionWriteOperation<C>[];
        relocatedEntities: Set<number>;
        undo: TransactionWriteOperation<C>[];
        undoable: null | Undoable;
        value: number | void;
    }

    Type Parameters

    • C = unknown
    Index

    Properties

    changedArchetypes: Set<number>
    changedComponents: Set<string>
    changedEntities: Map<number, null | EntityUpdateValues<C>>
    intermediate: boolean

    True when the transaction is a non-final intermediate operation within a sequence.

    persistent: boolean

    True when at least one changed entity is persistent (see Entity.isPersistent).

    relocatedEntities: Set<number>

    Entities relocated to a new backing row as a SIDE EFFECT of this transaction — swap-moved neighbors of a delete/migration, plus the migrated entity itself. Distinct from changedEntities (the directly touched entities): a relocated entity's columns are freshly established at its new row and are NOT covered by changedEntities, so a consumer that mirrors row layout (e.g. persistence) must full-write it. Empty for transactions with no swap/migration.

    undoable: null | Undoable
    value: number | void

    The Entity value if any returned by the transaction function.