improve reject update example
This commit is contained in:
parent
e3739bce8e
commit
35c030d834
@ -152,7 +152,9 @@ export const testRejectUpdateExample = _tc => {
|
|||||||
try {
|
try {
|
||||||
Y.applyUpdate(ydoc, update, 'remote change')
|
Y.applyUpdate(ydoc, update, 'remote change')
|
||||||
} finally {
|
} finally {
|
||||||
um.undo()
|
while (um.undoStack.length) {
|
||||||
|
um.undo()
|
||||||
|
}
|
||||||
um.destroy()
|
um.destroy()
|
||||||
ydoc.store.pendingDs = beforePendingDs
|
ydoc.store.pendingDs = beforePendingDs
|
||||||
ydoc.store.pendingStructs = null
|
ydoc.store.pendingStructs = null
|
||||||
|
Loading…
x
Reference in New Issue
Block a user