There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
fix: connection state
DarkSky124891b2b55e
diff --git a/libs/datasource/jwt/src/yjs/provider.ts b/libs/datasource/jwt/src/yjs/provider.tsindex ad7df930e5..a444dc0a43 100644--- a/libs/datasource/jwt/src/yjs/provider.ts+++ b/libs/datasource/jwt/src/yjs/provider.ts@@ -118,7 +118,7 @@ export const getYjsProviders = (// TODO: synced will also be triggered on reconnection after losing sync// There needs to be an event mechanism to emit the synchronization state to the upper layerws.once('synced', () => resolve());- ws.once('lost-connection', () => resolve());+ ws.once('lost-connection', () => reject());ws.once('connection-error', () => reject());ws.on('synced', () => instances.emitState('connected'));ws.on('lost-connection', () =>