Web: Client: NavMenu: fix memory leak
This commit is contained in:
parent
f8ce260d91
commit
4ad45de4b6
@ -44,6 +44,9 @@ const RecoverAccessModalDialog = ({
|
||||
|
||||
React.useEffect(() => {
|
||||
window.addEventListener("resize", () => setWidth(window.innerWidth));
|
||||
|
||||
return () =>
|
||||
window.removeEventListener("resize", () => setWidth(window.innerWidth));
|
||||
}, []);
|
||||
|
||||
return (
|
||||
|
Loading…
Reference in New Issue
Block a user