Interface TransactionStoreListener<STATE, INPUTS>

interface TransactionStoreListener<STATE, INPUTS> {
    onChange(changes, description): void;
    onClear?(uuid): void;
}

Type Parameters

  • STATE = any
  • INPUTS = undefined

Methods

  • Called when a change set is committed to the global changeset. This is a map of unique ids to change sets.

    Parameters

    Returns void

  • Called when all transactions are cleared. Handlers should clear their state. For example undo should clear the undo stack.

    Parameters

    • uuid: string

    Returns void