Browse Source

add todo comment

ryoji-s 2 years ago
parent
commit
2f2c329aac

+ 1 - 0
packages/editor/src/components/CodeMirrorEditorMain.tsx

@@ -63,6 +63,7 @@ export const CodeMirrorEditorMain = (props: Props): JSX.Element => {
     provider.disconnect();
     setProvider(null);
 
+    // TODO: catch ydoc:sync:error
     // TODO: use SocketEventName
     socket.off('ydoc:sync');
 

+ 1 - 0
packages/editor/src/consts/ydoc-awareness-user-color.ts

@@ -1,3 +1,4 @@
+// see: https://github.com/yjs/y-codemirror.next#example
 import * as random from 'lib0/random';
 
 export const usercolors = [