From 266c333b296d444d9a8df6d3255f52eac1c5ed0e Mon Sep 17 00:00:00 2001 From: ItzCrazyKns <95534749+ItzCrazyKns@users.noreply.github.com> Date: Fri, 29 Aug 2025 12:42:38 +0530 Subject: [PATCH] feat(chat): only add eventListener on mount --- src/components/Chat.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Chat.tsx b/src/components/Chat.tsx index a5d8cf9..bf0bd1d 100644 --- a/src/components/Chat.tsx +++ b/src/components/Chat.tsx @@ -28,7 +28,7 @@ const Chat = () => { return () => { window.removeEventListener('resize', updateDividerWidth); }; - }); + }, []); useEffect(() => { const scroll = () => {