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,
|
CustomComponentRequest,
|
||||||
ResponseErrorTypeAPI,
|
ResponseErrorTypeAPI,
|
||||||
IPostValidateComponentCode
|
IPostValidateComponentCode
|
||||||
> = mutate(
|
> = mutate(["usePostValidateComponentCode"], postValidateComponentCodeFn, {
|
||||||
["usePostValidateComponentCode"],
|
...options,
|
||||||
postValidateComponentCodeFn,
|
retry: 0,
|
||||||
options,
|
retryDelay: 0,
|
||||||
);
|
});
|
||||||
|
|
||||||
return mutation;
|
return mutation;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue