diff --git a/wax-prosemirror-core/src/Wax.js b/wax-prosemirror-core/src/Wax.js index 6a470b54f6dabc8fff0671e1588740d3f0ea0fcc..a1e7c32f437b9ccd75dafddbb8fc1341d37a94c1 100644 --- a/wax-prosemirror-core/src/Wax.js +++ b/wax-prosemirror-core/src/Wax.js @@ -63,17 +63,13 @@ const Wax = forwardRef((props, innerViewRef) => { const [application, setApplication] = useState(); const configHash = createConfigWithHash(config); - useEffect(() => { - return () => application?.resetApp(); - }, []); - useEffect(() => { const newApplication = createApplication(props); WaxLayout = setupLayout(newApplication, layout); setApplication(newApplication); return () => { - newApplication.resetApp(); - WaxLayout = null; + // newApplication.resetApp(); + // WaxLayout = null; }; }, [configHash]);