a tool for shared writing and social publishing
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

prevent text updates from creating mutations

+2 -1
+2 -1
components/Blocks/TextBlock/index.tsx
··· 592 592 useEffect(() => { 593 593 if (!rep.rep) return; 594 594 let timeout = null as null | number; 595 - const f = async () => { 595 + const f = async (events: Y.YEvent<any>[], transaction: Y.Transaction) => { 596 + if (!transaction.origin) return; 596 597 const updateReplicache = async () => { 597 598 const update = Y.encodeStateAsUpdate(ydoc); 598 599 await rep.rep?.mutate.assertFact({