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:
parent
e26915a032
commit
25b5c599af
1 changed files with 5 additions and 5 deletions
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue