Classy Store

History

Edit a document, undo and redo changes, and pause or resume history recording.

Undo / Redo Editor

withHistory() adds undo/redo via snapshot stack. Use pause()/resume() to control recording and useHistoryStatus() to render its status.

Titlerenders: 1
Contentrenders: 1
Document length · 37 characters
Recordingrenders: 1
Can undo: falseCan redo: false

API · withHistory(store, options?): HistoryHandle from @codebelt/classy-store/utils.

Use pause() to skip recording edits and resume() to record subsequent changes.

On this page