MCPcopy
hub / github.com/tinyplex/tinybase / syncDocs

Function syncDocs

test/unit/persisters/yjs.test.ts:183–188  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

181 let persister2: Persister;
182
183 const syncDocs = async () => {
184 await pause();
185 applyUpdate(doc1, encodeStateAsUpdate(doc2));
186 applyUpdate(doc2, encodeStateAsUpdate(doc1));
187 await pause();
188 };
189
190 beforeEach(() => {
191 doc2 = new YDoc();

Callers 1

yjs.test.tsFile · 0.70

Calls 1

pauseFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…