From 5c72fa213936ece2bbd3279bdbf280e95d1eb633 Mon Sep 17 00:00:00 2001 From: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Date: Thu, 9 Jul 2026 01:32:20 +0800 Subject: [PATCH] refactor(web): use resolved suspense query atom --- web/context/app-context-state.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/context/app-context-state.ts b/web/context/app-context-state.ts index b6c3624f814..c398a76485c 100644 --- a/web/context/app-context-state.ts +++ b/web/context/app-context-state.ts @@ -7,7 +7,7 @@ import { systemFeaturesQueryOptions } from '@/features/system-features/client' import { workspacePermissionKeysQueryOptions } from '@/service/access-control/use-permission-keys' import { consoleQuery } from '@/service/client' import { langGeniusVersionQueryOptions } from '@/service/lang-genius-version' -import { atomWithPrefetchedQuery } from '@/utils/atom-with-prefetched-query' +import { atomWithResolvedSuspenseQuery } from '@/utils/atom-with-prefetched-query' import { initialLangGeniusVersionInfo, initialWorkspaceInfo, @@ -19,9 +19,9 @@ import { normalizeCurrentWorkspace, } from './app-context-normalizers' -const accountProfileQueryAtom = atomWithPrefetchedQuery(() => userProfileQueryOptions()) +const accountProfileQueryAtom = atomWithResolvedSuspenseQuery(() => userProfileQueryOptions()) -const systemFeaturesQueryAtom = atomWithPrefetchedQuery(() => systemFeaturesQueryOptions()) +const systemFeaturesQueryAtom = atomWithResolvedSuspenseQuery(() => systemFeaturesQueryOptions()) const systemFeaturesAtom = atom((get) => { return get(systemFeaturesQueryAtom).data