mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +02:00
add gcTime to rq mutation
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user