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