Skip to main content

redo

Reapplies the change that undo reverted, restoring the event snapshot undo displaced. Requires history set to true; with the default toolbar it is wired to the Redo button.

PRO

The functionality is available in PRO Edition only

Usage

type RedoPayload = {};

The payload is empty. Each dispatch steps one entry forward in the redo stack; it does nothing when the stack is empty.

Trigger

api.exec("redo", {});

Observe

api.on("redo", () => console.log("redone"));

Intercept

api.intercept("redo", () => historyEnabled);

Component handler

<Calendar onredo={() => console.log("redone")} />
  • undo — revert the latest tracked change.
  • history — enable the local undo/redo stack.
  • Undo and Redo — how the history stack works and its limits.