about summary refs log tree commit diff
path: root/src/state/queries/profile.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/state/queries/profile.ts')
-rw-r--r--src/state/queries/profile.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/state/queries/profile.ts b/src/state/queries/profile.ts
index 7bdef68ae..3aa01f90c 100644
--- a/src/state/queries/profile.ts
+++ b/src/state/queries/profile.ts
@@ -29,17 +29,17 @@ export const profilesQueryKey = (handles: string[]) => ['profiles', handles]
 
 export function useProfileQuery({
   did,
-  dontInvalidate,
+  staleTime = STALE.SECONDS.FIFTEEN,
 }: {
   did: string | undefined
-  dontInvalidate?: boolean
+  staleTime?: number
 }) {
   return useQuery({
     // WARNING
     // this staleTime is load-bearing
     // if you remove it, the UI infinite-loops
     // -prf
-    staleTime: dontInvalidate ? STALE.INFINITY : STALE.SECONDS.FIFTEEN,
+    staleTime,
     refetchOnWindowFocus: true,
     queryKey: RQKEY(did || ''),
     queryFn: async () => {