mirror of
https://github.com/yjs/yjs.git
synced 2025-12-16 11:47:46 +01:00
use stores ds to compute state as update
This commit is contained in:
@@ -21,7 +21,6 @@ import {
|
||||
getStateVector,
|
||||
readAndApplyDeleteSet,
|
||||
writeIdSet,
|
||||
createDeleteSetFromStructStore,
|
||||
transact,
|
||||
readItemContent,
|
||||
UpdateDecoderV1,
|
||||
@@ -523,7 +522,7 @@ export const applyUpdate = (ydoc, update, transactionOrigin) => applyUpdateV2(yd
|
||||
*/
|
||||
export const writeStateAsUpdate = (encoder, doc, targetStateVector = new Map()) => {
|
||||
writeClientsStructs(encoder, doc.store, targetStateVector)
|
||||
writeIdSet(encoder, createDeleteSetFromStructStore(doc.store))
|
||||
writeIdSet(encoder, doc.store.ds)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user