From 25b5c599af903f39961f3cbb567ac30f660b1aa3 Mon Sep 17 00:00:00 2001 From: Cristhian Zanforlin Lousa Date: Wed, 12 Mar 2025 20:20:01 -0300 Subject: [PATCH] fix: Disable retries in usePostValidateComponentCode mutation (#7044) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ♻️ (use-post-validate-component-code.ts): refactor usePostValidateComponentCode function to include retry and retryDelay options for better control over mutation behavior Co-authored-by: Gabriel Luiz Freitas Almeida --- .../queries/nodes/use-post-validate-component-code.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/frontend/src/controllers/API/queries/nodes/use-post-validate-component-code.ts b/src/frontend/src/controllers/API/queries/nodes/use-post-validate-component-code.ts index 3bb65ed4c..55ceaf0f5 100644 --- a/src/frontend/src/controllers/API/queries/nodes/use-post-validate-component-code.ts +++ b/src/frontend/src/controllers/API/queries/nodes/use-post-validate-component-code.ts @@ -40,11 +40,11 @@ export const usePostValidateComponentCode: useMutationFunctionType< CustomComponentRequest, ResponseErrorTypeAPI, IPostValidateComponentCode - > = mutate( - ["usePostValidateComponentCode"], - postValidateComponentCodeFn, - options, - ); + > = mutate(["usePostValidateComponentCode"], postValidateComponentCodeFn, { + ...options, + retry: 0, + retryDelay: 0, + }); return mutation; };