fix(core): should return a cleanup function (#7371)

This commit is contained in:
Fangdun Tsai authored and GitHub committed 2024-06-28 14:18:24 +08:00
1 parent d51fd8b54b
commit 855d555480
1 file changed
+1 -1
@@ -115,7 +115,7 @@ const DetailPageImpl = memo(function DetailPageImpl() {
setTabOnLoad(null);
}
});
return disposable.dispose();
return () => disposable.dispose();
}, [activeTabName, rightSidebar, setActiveTabName]);
useEffect(() => {