feat: improve workspace hook (#3099)

(cherry picked from commit b49306607b)
This commit is contained in:
Alex Yang
2023-07-08 13:43:39 +08:00
parent 1908d1a213
commit 2ae7bea5b1
13 changed files with 167 additions and 98 deletions

View File

@@ -2,7 +2,7 @@ import { WorkspaceFallback } from '@affine/component/workspace';
import { DebugLogger } from '@affine/debug';
import { WorkspaceSubPath } from '@affine/env/workspace';
import { rootWorkspacesMetadataAtom } from '@affine/workspace/atom';
import { getWorkspace } from '@affine/workspace/utils';
import { getWorkspace } from '@toeverything/hooks/use-block-suite-workspace';
import { useAtomValue } from 'jotai';
import type { NextPage } from 'next';
import { useRouter } from 'next/router';