Skip to content

Commit

Permalink
CU-86duf5c4b - NEON3 - Adjust our implementation so we don't do a ful…
Browse files Browse the repository at this point in the history
…l refresh when focusing from idle
  • Loading branch information
raulduartep committed Aug 29, 2024
1 parent ae57f9f commit 7e7c745
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/renderer/src/libs/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import { QueryClient } from '@tanstack/react-query'
export const queryClient = new QueryClient({
defaultOptions: {
queries: {
retry: 0,
retry: false,
refetchOnMount: false,
refetchOnWindowFocus: false,
gcTime: Infinity,
staleTime: 5 * 60 * 1000, // 5 minutes
},
Expand Down

0 comments on commit 7e7c745

Please sign in to comment.