mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +02:00
add gcTime to rq mutation
This commit is contained in:
@@ -20,10 +20,10 @@ const queryCache = new QueryCache({
|
|||||||
|
|
||||||
const queryConfig: DefaultOptions = {
|
const queryConfig: DefaultOptions = {
|
||||||
mutations: {
|
mutations: {
|
||||||
|
gcTime: 1000 * 20, // 20 seconds
|
||||||
retry: process.env.NODE_ENV === 'production',
|
retry: process.env.NODE_ENV === 'production',
|
||||||
},
|
},
|
||||||
queries: {
|
queries: {
|
||||||
experimental_prefetchInRender: true,
|
|
||||||
gcTime: 1000 * 20, // 20 seconds
|
gcTime: 1000 * 20, // 20 seconds
|
||||||
refetchOnWindowFocus: false,
|
refetchOnWindowFocus: false,
|
||||||
retry: process.env.NODE_ENV === 'production',
|
retry: process.env.NODE_ENV === 'production',
|
||||||
|
|||||||
Reference in New Issue
Block a user