fix(core): improve performance (#6345)

This commit is contained in:
EYHN
2024-03-27 14:01:54 +00:00
parent 710edd28db
commit ba9dad95b4
6 changed files with 66 additions and 40 deletions
@@ -73,7 +73,7 @@ export const Component = (): ReactElement => {
// avoid doing operation, before workspace is loaded
const isRootDocReady =
useLiveData(workspace?.engine.rootDocState$)?.ready ?? false;
useLiveData(workspace?.engine.rootDocState$.map(v => v.ready)) ?? false;
// if listLoading is false, we can show 404 page, otherwise we should show loading page.
if (listLoading === false && meta === undefined) {