mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
fix(core): should return a cleanup function (#7371)
This commit is contained in:
@@ -115,7 +115,7 @@ const DetailPageImpl = memo(function DetailPageImpl() {
|
|||||||
setTabOnLoad(null);
|
setTabOnLoad(null);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return disposable.dispose();
|
return () => disposable.dispose();
|
||||||
}, [activeTabName, rightSidebar, setActiveTabName]);
|
}, [activeTabName, rightSidebar, setActiveTabName]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user