fix: Disable retries in usePostValidateComponentCode mutation (#7044)

♻️ (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 <gabriel@langflow.org>
This commit is contained in:
Cristhian Zanforlin Lousa 2025-03-12 20:20:01 -03:00 • committed by GitHub
commit 25b5c599af
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
};