mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +02:00
prevent infinite mutation retries (#1315)
This commit is contained in:
@@ -20,6 +20,7 @@ export const useShareItem = (args: MutationHookArgs) => {
|
|||||||
apiClientProps: { serverId: args.apiClientProps.serverId },
|
apiClientProps: { serverId: args.apiClientProps.serverId },
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
retry: false,
|
||||||
...options,
|
...options,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ const queryCache = new QueryCache({
|
|||||||
|
|
||||||
const queryConfig: DefaultOptions = {
|
const queryConfig: DefaultOptions = {
|
||||||
mutations: {
|
mutations: {
|
||||||
retry: process.env.NODE_ENV === 'production',
|
retry: process.env.NODE_ENV === 'production' ? 3 : false,
|
||||||
},
|
},
|
||||||
queries: {
|
queries: {
|
||||||
gcTime: 1000 * 5, // 5 seconds
|
gcTime: 1000 * 5, // 5 seconds
|
||||||
|
|||||||
Reference in New Issue
Block a user