diff --git a/wax-prosemirror-core/src/WaxView.js b/wax-prosemirror-core/src/WaxView.js index 2a87afd2a96f3435fd87ff3f05a6d5d26d9c1439..8eab7d26af4357560181131bc1642067cf80f444 100644 --- a/wax-prosemirror-core/src/WaxView.js +++ b/wax-prosemirror-core/src/WaxView.js @@ -44,7 +44,6 @@ const WaxView = forwardRef((props, ref) => { scrollThreshold, } = props; - const [mounted, setMounted] = useState(false); const context = useContext(WaxContext); const { createPortal } = useContext(PortalContext); @@ -55,11 +54,9 @@ const WaxView = forwardRef((props, ref) => { const setEditorRef = useCallback( node => { if (node) { - if (!mounted) { - context.app.bootServices(); - context.app.getShortCuts(); - context.app.getRules(); - } + context.app.bootServices(); + context.app.getShortCuts(); + context.app.getRules(); const options = WaxOptions({ ...props, @@ -84,8 +81,6 @@ const WaxView = forwardRef((props, ref) => { }, ); - setMounted(true); - context.updateView( { main: view,