Skip to content

Commit 6b4d064

Browse files
committed
refactor: rename cacheTime to gcTime in queryClient configuration
- Updated the queryClient configuration to rename the cacheTime property to gcTime for clarity, indicating its purpose more accurately as garbage collection time.
1 parent 1da0e79 commit 6b4d064

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/frontend/src/api/queryClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const queryClient = new QueryClient({
77
retry: 1,
88
refetchOnWindowFocus: true,
99
staleTime: 30000, // 30 seconds
10-
cacheTime: 1000 * 60 * 5, // 5 minutes
10+
gcTime: 1000 * 60 * 5, // 5 minutes (formerly cacheTime)
1111
refetchOnMount: true,
1212
},
1313
},

0 commit comments

Comments
 (0)