Undo Redo Support
websiddu opened this issue · 1 comments
websiddu commented
Is there a way to do undo/redo using Synced Store?
YousefED commented
Yes @websiddu ! You should be able to use the regular Yjs undomanager, e.g.:
const val = getYjsValuestore.value)
const undoManager = new Y.UndoManager(val)
// Do stuff to val (Let undoManager capture the updates)
undoManager.undo() // Revert the captured updates
Does this answer your question?