mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +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 },
|
||||
});
|
||||
},
|
||||
retry: false,
|
||||
...options,
|
||||
});
|
||||
};
|
||||
|
||||
@@ -20,7 +20,7 @@ const queryCache = new QueryCache({
|
||||
|
||||
const queryConfig: DefaultOptions = {
|
||||
mutations: {
|
||||
retry: process.env.NODE_ENV === 'production',
|
||||
retry: process.env.NODE_ENV === 'production' ? 3 : false,
|
||||
},
|
||||
queries: {
|
||||
gcTime: 1000 * 5, // 5 seconds
|
||||
|
||||
Reference in New Issue
Block a user