refactor: rewrite useStepWithTestExecutions with RQ

This commit is contained in:
Rıdvan Akca
2024-03-25 19:07:30 +03:00
parent ee26b54d54
commit 3632ee77e5
8 changed files with 32 additions and 83 deletions

View File

@@ -49,7 +49,6 @@ function TestSubstep(props) {
const [executeFlow, { data, error, loading, called, reset }] = useMutation(
EXECUTE_FLOW,
{
refetchQueries: ['GetStepWithTestExecutions'],
context: { autoSnackbar: false },
},
);
@@ -85,7 +84,7 @@ function TestSubstep(props) {
await queryClient.invalidateQueries({
queryKey: ['flow', flowId],
});
}, [onSubmit, onContinue, isCompleted, step.id, queryClient, flowId]);
}, [onSubmit, onContinue, isCompleted, queryClient, flowId]);
const onToggle = expanded ? onCollapse : onExpand;