feat(chat): only add eventListener on mount

This commit is contained in:
ItzCrazyKns
2025-08-29 12:42:38 +05:30
parent a6f3d98aef
commit 266c333b29

View File

@@ -28,7 +28,7 @@ const Chat = () => {
return () => {
window.removeEventListener('resize', updateDividerWidth);
};
});
}, []);
useEffect(() => {
const scroll = () => {