refactor(core): use new backlink indexer (#7296)

This commit is contained in:
EYHN committed 2024-07-02 09:18:01 +00:00
1 parent 40e381e272
commit 27d0fc5108
33 files changed
+826 -357

No files matched your search

@@ -1,6 +1,12 @@
import { applyUpdate, Doc as YDoc, encodeStateAsUpdate, transact } from 'yjs';
export function mergeUpdate(updates: Uint8Array[]) {
if (updates.length === 0) {
return new Uint8Array();
}
if (updates.length === 1) {
return updates[0];
}
const yDoc = new YDoc();
transact(yDoc, () => {
for (const update of updates) {