feat: seperate createDoc and createStore (#11182)

This commit is contained in:
Saul-Mirone
2025-03-26 11:03:47 +00:00
parent d6093e1d66
commit 0a8d8e0a6b
70 changed files with 337 additions and 312 deletions
@@ -4,8 +4,8 @@ import * as Y from 'yjs';
import type { InitFn } from './utils.js';
export const versionMismatch: InitFn = (collection: Workspace, id: string) => {
const doc = collection.createDoc({ id });
const tempDoc = collection.createDoc({ id: 'tempDoc' });
const doc = collection.createDoc(id).getStore({ id });
const tempDoc = collection.createDoc('tempDoc').getStore();
doc.load();
tempDoc.load(() => {