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): fix page loading shimmer (#5027)

EYHN06203498da40
diff --git a/packages/frontend/core/src/pages/workspace/detail-page.tsx b/packages/frontend/core/src/pages/workspace/detail-page.tsx
index eab4a53335..e9111cc833 100644
--- a/packages/frontend/core/src/pages/workspace/detail-page.tsx
+++ b/packages/frontend/core/src/pages/workspace/detail-page.tsx
@@ -158,7 +158,7 @@ export const DetailPage = (): ReactElement => {
// wait for page to be loaded
useEffect(() => {
if (page) {
- if (!page.loaded) {
+ if (!page.isEmpty) {
setPageLoaded(true);
} else {
setPageLoaded(false);