refactor: rewrite useStepWithTestExecutions with RQ
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user