Closed skomlaebri closed 2 years ago
Pretty simple:
const doc = getYjsValue(store)
doc.transact(() => {
// Transaction
})
Thanks, that what I ended up doing, I was curious to know if there was a way to avoid the conversion and not having to handle everything with the yjs Syntax.
At this moment there's no build in SyncedStore transactions, but the proposed method should work well!
Hi,
is there a way in SyncedStore to do doc transact as in Yjs, to reduce the number of update calls?