a tool for shared writing and social publishing

catch editor state done before subscribing

+4
+4
components/Blocks/TextBlock/mountProsemirror.ts
··· 91 91 editorState.view?.updateState(editorState.editor); 92 92 }); 93 93 94 + let editorState = useEditorStates.getState().editorStates[entityID]; 95 + if (editorState?.editor && !editorState.initial) 96 + editorState.view?.updateState(editorState.editor); 97 + 94 98 return () => { 95 99 unsubscribe(); 96 100 view.destroy();