UndoOrRedoInformation
The UndoOrRedoInformation type is an array that you can fetch from a Checkpoints object that indicates if and how you can move the state of the underlying Store forward or backward.
[available: Accessor<boolean>, action: Callback, checkpointId: Accessor<Id | undefined>, label: Accessor<string>]This type is useful if you are building undo or redo buttons. See the useUndoInformation primitive and the useRedoInformation primitive for more details and examples.
The first, third, and fourth entries are Accessor functions for the availability, checkpoint Id, and label respectively. The second entry is the callback that performs the action.
Since
v8.3.0