diff options
author | Samuel Newman <mozzius@protonmail.com> | 2025-08-14 01:13:51 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-14 01:13:51 +0300 |
commit | 7a334362aefadca29bef9de0f4459d0577d328ca (patch) | |
tree | 218ffe4b79e096c5926c38f3269a13d42f798961 /src/components/dialogs/nuxs | |
parent | b2c56cbd6dfa9af576f947dd41a0d33376b184d1 (diff) | |
download | voidsky-7a334362aefadca29bef9de0f4459d0577d328ca.tar.zst |
[Perf - part 1] Hoist service config query (#8812)
Diffstat (limited to 'src/components/dialogs/nuxs')
-rw-r--r-- | src/components/dialogs/nuxs/index.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/components/dialogs/nuxs/index.tsx b/src/components/dialogs/nuxs/index.tsx index 2daf4a268..985d58eec 100644 --- a/src/components/dialogs/nuxs/index.tsx +++ b/src/components/dialogs/nuxs/index.tsx @@ -3,6 +3,7 @@ import {type AppBskyActorDefs} from '@atproto/api' import {useGate} from '#/lib/statsig/statsig' import {logger} from '#/logger' +import {STALE} from '#/state/queries' import {Nux, useNuxs, useResetNuxs, useSaveNux} from '#/state/queries/nuxs' import { usePreferencesQuery, @@ -56,7 +57,10 @@ export function useNuxDialogContext() { export function NuxDialogs() { const {currentAccount} = useSession() const {data: preferences} = usePreferencesQuery() - const {data: profile} = useProfileQuery({did: currentAccount?.did}) + const {data: profile} = useProfileQuery({ + did: currentAccount?.did, + staleTime: STALE.INFINITY, // createdAt isn't gonna change + }) const onboardingActive = useOnboardingState().isActive const isLoading = |