Search Docs
Loading...
Skip to content

Type Alias: HistoryUpdate

type HistoryUpdate = "Updated" | "Activated";

Describes the kind of update that triggered an onHistoryUpdatedWithKind callback.

  • Updated: The active history’s snapshots changed: a new snapshot was added (e.g. after an edit), or undo/redo was applied. The scene state changed as a direct consequence.
  • Activated: A different history buffer was activated via setActiveHistory. The undo/redo stack visible to the user changed, but no new snapshot was created and no undo/redo was applied as part of this event.