Skip to main content

redo

PRO

The functionality is available in PRO Edition only

Re-applies the last undone change. Requires history={true} on the <Kanban> component. If the redo stack is empty or history isn't enabled, the action is a no-op. The current card state is pushed onto the undo stack before restoring.

Usage

type RedoPayload = Record<string, never>;

Empty payload. No fields required.

Trigger

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

Observe

api.on("redo", () => {
console.log("Redo applied");
});

Intercept

api.intercept("redo", () => {
// Cancel redo under certain conditions
if (locked) return false;
});

Component handler

<Kanban {cards} {columns} history onredo={() => console.log("redo")} />