diff --git a/frontend/components/editor/index.tsx b/frontend/components/editor/index.tsx index 3c4504b..4f6405e 100644 --- a/frontend/components/editor/index.tsx +++ b/frontend/components/editor/index.tsx @@ -431,7 +431,7 @@ export default function CodeEditor({ return () => { socket?.disconnect() } - }, []) + }, [socket]) // Socket event listener effect useEffect(() => {