Skip to content

Commit 9d14c14

Browse files
committed
update key for cache time
1 parent 694ab78 commit 9d14c14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/provider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default function Provider({ children }: { children: React.ReactNode }) {
1919
refetchOnWindowFocus: false,
2020
refetchOnReconnect: false,
2121
staleTime: 5 * 60 * 1000, // 5 minutes
22-
gcTime: 10 * 60 * 1000, // 10 minutes (was cacheTime)
22+
cacheTime: 10 * 60 * 1000, // 10 minutes
2323
retry: (failureCount, error: any) => {
2424
// Don't retry on 4xx errors
2525
if (error?.response?.status >= 400 && error?.response?.status < 500) {

0 commit comments

Comments
 (0)