mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-08-28 05:25:33 +00:00
Fix: Remove event listener through cleanup
This commit is contained in:
parent
1af0b7d967
commit
4a90134f34
1 changed files with 3 additions and 1 deletions
|
|
@ -146,8 +146,10 @@ export default function ContentApp({
|
|||
|
||||
return () => {
|
||||
document.removeEventListener("mousemove", () => {});
|
||||
document.removeEventListener('keydown', handleKeyDown, true);
|
||||
|
||||
};
|
||||
}, []);
|
||||
}, [isPopoverOpen]);
|
||||
|
||||
const getSpaces = async () => {
|
||||
const response = await fetch(`${BACKEND_URL}/api/spaces`, {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue