Many requests using form
I have this kind of form
And when I see on network tab I can see fetching the same entity many times. Why is this happening?
const { form, formProps, saveButtonProps, onFinish, queryResult } = useForm({
id,
action: RESOURCES_ACTION_EDIT,
resource: RESOURCES.COMPARISONS,
redirect: "list",
onMutationSuccess: () => {
const message = translate("common.success");
const description = translate("pages.pricingAuditComparisions.edit.success");
notification.success({ message, description });
},
onMutationError: () => {
const message = translate("common.error");
const description = translate("pages.pricingAuditComparisions.edit.error");
notification.error({ message, description });
},
}); const { form, formProps, saveButtonProps, onFinish, queryResult } = useForm({
id,
action: RESOURCES_ACTION_EDIT,
resource: RESOURCES.COMPARISONS,
redirect: "list",
onMutationSuccess: () => {
const message = translate("common.success");
const description = translate("pages.pricingAuditComparisions.edit.success");
notification.success({ message, description });
},
onMutationError: () => {
const message = translate("common.error");
const description = translate("pages.pricingAuditComparisions.edit.error");
notification.error({ message, description });
},
});And when I see on network tab I can see fetching the same entity many times. Why is this happening?
