Reduce stale time for join link preview queries (#10733)

This commit is contained in:
DS Boyce
2026-06-04 14:11:50 -07:00
committed by GitHub
parent 923e1635d8
commit 45bd5b45e8
+2 -2
View File
@@ -83,7 +83,7 @@ export function usePrefetchJoinLinkPreviews() {
return queryClient.prefetchQuery({
queryKey: createJoinLinkPreviewQueryKey({codes, hasSession}),
queryFn: () => fetchJoinLinkPreviews({agent, codes, hasSession}),
staleTime: STALE.MINUTES.ONE,
staleTime: STALE.SECONDS.FIFTEEN,
})
}
}
@@ -110,7 +110,7 @@ export function useGetJoinLinkPreview() {
queryKey: createJoinLinkPreviewQueryKey({codes: [code], hasSession}),
queryFn: () =>
fetchJoinLinkPreviews({agent, codes: [code], hasSession}),
staleTime: STALE.MINUTES.ONE,
staleTime: STALE.SECONDS.FIFTEEN,
})
return data.joinLinkPreviews[0]
} catch (error) {