prevent infinite mutation retries (#1315)

This commit is contained in:
jeffvli
2025-12-04 18:28:28 -08:00
parent ab9da5207c
commit 845b678e18
2 changed files with 2 additions and 1 deletions
@@ -20,6 +20,7 @@ export const useShareItem = (args: MutationHookArgs) => {
apiClientProps: { serverId: args.apiClientProps.serverId },
});
},
retry: false,
...options,
});
};
+1 -1
View File
@@ -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