refactor useMetadata hook and minor fixes
This commit is contained in:
@@ -125,7 +125,9 @@ export default function EventCollector() {
|
||||
if (unsubscribe.current) {
|
||||
unsubscribe.current();
|
||||
}
|
||||
unlisten.current();
|
||||
if (unlisten.current) {
|
||||
unlisten.current;
|
||||
}
|
||||
};
|
||||
}, [setHasNewerNote, subscribe, listenWindowClose]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user