perf(core): load all pages after 10s (#4834)

This commit is contained in:
Peng Xiao
2023-11-03 17:42:29 +08:00
committed by GitHub
parent 61dc4a56f9
commit 7e381e830a
7 changed files with 102 additions and 15 deletions
@@ -6,6 +6,8 @@ import { ReferencePage } from '../components/reference-page';
import type { FavoriteListProps } from '../index';
import EmptyItem from './empty-item';
const emptyPageIdSet = new Set<string>();
export const FavoriteList = ({ workspace }: FavoriteListProps) => {
const metas = useBlockSuitePageMeta(workspace);
@@ -35,7 +37,7 @@ export const FavoriteList = ({ workspace }: FavoriteListProps) => {
metaMapping={metaMapping}
pageId={pageMeta.id}
// memo?
parentIds={new Set()}
parentIds={emptyPageIdSet}
workspace={workspace}
/>
);