Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

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

Fangdun Tsai855d55548013
diff --git a/packages/frontend/core/src/pages/workspace/detail-page/detail-page.tsx b/packages/frontend/core/src/pages/workspace/detail-page/detail-page.tsx
index 50cc2cd522..82abaa068a 100644
--- a/packages/frontend/core/src/pages/workspace/detail-page/detail-page.tsx
+++ b/packages/frontend/core/src/pages/workspace/detail-page/detail-page.tsx
@@ -115,7 +115,7 @@ const DetailPageImpl = memo(function DetailPageImpl() {
setTabOnLoad(null);
}
});
- return disposable.dispose();
+ return () => disposable.dispose();
}, [activeTabName, rightSidebar, setActiveTabName]);
useEffect(() => {