Skip to content

Commit 7ac82c1

Browse files
authored
Merge pull request #252 from docker/cm/remove-problematic-query-config
Remove configuration causing old data to stick around in the UI
2 parents 0745ee2 + af66d45 commit 7ac82c1

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/extension/ui/src/main.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@ import { App } from './App';
1111
const queryClient = new QueryClient({
1212
defaultOptions: {
1313
queries: {
14-
// Keep data in cache for 5 minutes
15-
gcTime: 5 * 60 * 1000,
16-
// Treat data as fresh for 30 seconds
17-
staleTime: 30 * 1000,
18-
// Don't refetch on window focus by default
19-
refetchOnWindowFocus: false,
2014
// Retry failed queries 3 times
2115
retry: 3
2216
}

0 commit comments

Comments
 (0)