From daae8fd33f667656a0b7f7ac80035833207e1e50 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Thu, 16 Nov 2023 16:23:06 -0600 Subject: [PATCH] Tempfix profile load --- src/state/queries/profile.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/state/queries/profile.ts b/src/state/queries/profile.ts index 0383de3385..19632a8e67 100644 --- a/src/state/queries/profile.ts +++ b/src/state/queries/profile.ts @@ -22,6 +22,7 @@ export const RQKEY = (did: string) => ['profile', did] export function useProfileQuery({did}: {did: string | undefined}) { const {agent} = useSession() return useQuery({ + staleTime: 1000 * 60, queryKey: RQKEY(did || ''), queryFn: async () => { const res = await agent.getProfile({actor: did || ''})