From 2415caac5d76692a1ae6482046d3506aca4a6a42 Mon Sep 17 00:00:00 2001 From: Christian Baroni <7061887+christianbaroni@users.noreply.github.com> Date: Thu, 16 Jan 2025 01:32:11 -0500 Subject: [PATCH] [queryClient] Adjust default `cacheTime` (#6403) --- src/react-query/queryClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/react-query/queryClient.ts b/src/react-query/queryClient.ts index 099c411e71b..10402a278b3 100644 --- a/src/react-query/queryClient.ts +++ b/src/react-query/queryClient.ts @@ -31,7 +31,7 @@ class MMKVPersister implements Persister { export const queryClient = new QueryClient({ defaultOptions: { queries: { - cacheTime: time.days(7), + cacheTime: time.minutes(5), staleTime: time.minutes(2), }, },