Client: Components: Main: Fixed event.
This commit is contained in:
parent
540243fa8e
commit
1f714c343c
@ -59,7 +59,7 @@ const Main = (props) => {
|
|||||||
window.addEventListener("resize", onResize);
|
window.addEventListener("resize", onResize);
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
window.addEventListener("resize", onResize);
|
window.removeEventListener("resize", onResize);
|
||||||
|
|
||||||
clearTimeout(updateSizeRef.current);
|
clearTimeout(updateSizeRef.current);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user