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