fix: remove editorRef from useEffect

This commit is contained in:
Akhilesh Rangani
2024-07-17 10:46:34 -04:00
committed by James Murdza
parent 7a80734c25
commit db1410f587
+1 -1
View File
@@ -397,7 +397,7 @@ export default function CodeEditor({
providerData.binding = undefined;
}
};
}, [editorRef, room, activeFileContent]);
}, [room, activeFileContent]);
// Added this effect to clean up when the component unmounts
useEffect(() => {