mirror of
https://github.com/yjs/yjs.git
synced 2025-12-16 11:47:46 +01:00
improve reject update example
This commit is contained in:
@@ -152,7 +152,9 @@ export const testRejectUpdateExample = _tc => {
|
||||
try {
|
||||
Y.applyUpdate(ydoc, update, 'remote change')
|
||||
} finally {
|
||||
um.undo()
|
||||
while (um.undoStack.length) {
|
||||
um.undo()
|
||||
}
|
||||
um.destroy()
|
||||
ydoc.store.pendingDs = beforePendingDs
|
||||
ydoc.store.pendingStructs = null
|
||||
|
||||
Reference in New Issue
Block a user