add gcTime to rq mutation

This commit is contained in:
jeffvli
2025-11-18 13:26:38 -08:00
parent ea95a7bbd1
commit 63e6df0481
+1 -1
View File
@@ -20,10 +20,10 @@ const queryCache = new QueryCache({
const queryConfig: DefaultOptions = {
mutations: {
gcTime: 1000 * 20, // 20 seconds
retry: process.env.NODE_ENV === 'production',
},
queries: {
experimental_prefetchInRender: true,
gcTime: 1000 * 20, // 20 seconds
refetchOnWindowFocus: false,
retry: process.env.NODE_ENV === 'production',