From 0679f99bb7193f75118aba64dcff77b9052e099c Mon Sep 17 00:00:00 2001 From: Akhileshrangani4 Date: Sun, 1 Sep 2024 22:04:56 -0400 Subject: [PATCH] fix: socket connection --- frontend/components/editor/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(() => {