diff --git a/frontend/app/src/features/room/components/code/CodeEditor.tsx b/frontend/app/src/features/room/components/code/CodeEditor.tsx index 4308092f..e8c3cb11 100644 --- a/frontend/app/src/features/room/components/code/CodeEditor.tsx +++ b/frontend/app/src/features/room/components/code/CodeEditor.tsx @@ -13,7 +13,6 @@ interface CodeEditorProps { className?: string; roomId: string; language: LanguageSupport; - setCurrentDocState: Dispatch>; } export const CodeEditor = ({ @@ -22,7 +21,6 @@ export const CodeEditor = ({ socket, roomId, language, - setCurrentDocState, }: CodeEditorProps) => { const [version, setVersion] = useState(null); const [isLoading, setLoading] = useState(true); @@ -53,7 +51,7 @@ export const CodeEditor = ({ socket?.off("pushUpdateResponse"); socket?.off("getDocumentResponse"); }; - }, [socket, roomId]); + }, [socket, roomId, setDoc]); if (isLoading || !socket) { return ; @@ -77,7 +75,6 @@ export const CodeEditor = ({ peerExtension(socket, version, roomId), EditorView.lineWrapping, ]} - onChange={value => setCurrentDocState(value)} value={doc} /> );