Revise cache times (#1942)

(cherry picked from commit 1be2060a2b)
This commit is contained in:
Eric Bailey
2023-11-16 17:43:53 -06:00
committed by GitHub
parent 1952705ded
commit 6f57192bd5
14 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ export function usePreferencesQuery() {
const {agent, hasSession} = useSession()
return useQuery({
enabled: hasSession,
staleTime: STALE.INFINITY,
staleTime: STALE.MINUTES.ONE,
queryKey: usePreferencesQueryKey,
queryFn: async () => {
const res = await agent.getPreferences()