refactor: remove NoSsr on top level (#1951)
This commit is contained in:
1 parent
43a96fe8e3
commit
2383165470
27 files changed
+211
-133
No files matched your search
@@ -6,7 +6,7 @@ import { useCallback, useEffect } from 'react';
|
||||
|
||||
import { Unreachable } from '../../../components/affine/affine-error-eoundary';
|
||||
import { PageLoading } from '../../../components/pure/loading';
|
||||
import { useReferenceLink } from '../../../hooks/affine/use-reference-link';
|
||||
import { useReferenceLinkEffect } from '../../../hooks/affine/use-reference-link-effect';
|
||||
import { useCurrentPageId } from '../../../hooks/current/use-current-page-id';
|
||||
import { useCurrentWorkspace } from '../../../hooks/current/use-current-workspace';
|
||||
import { usePageMeta, usePageMetaHelper } from '../../../hooks/use-page-meta';
|
||||
@@ -43,7 +43,7 @@ const WorkspaceDetail: React.FC = () => {
|
||||
|
||||
useSyncRecentViewsWithRouter(router);
|
||||
|
||||
useReferenceLink({
|
||||
useReferenceLinkEffect({
|
||||
pageLinkClicked: useCallback(
|
||||
({ pageId }: { pageId: string }) => {
|
||||
assertExists(currentWorkspace);
|
||||
|
||||
Reference in new issue
Block a user