mirror of
https://github.com/ItzCrazyKns/Perplexica.git
synced 2025-10-13 19:18:14 +00:00
feat(chat): only add eventListener on mount
This commit is contained in:
@@ -28,7 +28,7 @@ const Chat = () => {
|
||||
return () => {
|
||||
window.removeEventListener('resize', updateDividerWidth);
|
||||
};
|
||||
});
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
const scroll = () => {
|
||||
|
Reference in New Issue
Block a user