hidden-sapphireH
Refine2y ago
4 replies
hidden-sapphire

Many requests using form

I have this kind of form
    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?
Was this page helpful?