fix: remove editorRef from useEffect

This commit is contained in:
Akhilesh Rangani 2024-07-15 16:12:08 -04:00
parent 5bf264b807
commit 7dd67f72d8

View File

@ -397,7 +397,7 @@ export default function CodeEditor({
providerData.binding = undefined; providerData.binding = undefined;
} }
}; };
}, [editorRef, room, activeFileContent]); }, [room, activeFileContent]);
// Added this effect to clean up when the component unmounts // Added this effect to clean up when the component unmounts
useEffect(() => { useEffect(() => {