managerial-maroonM
Refine2y ago
8 replies
managerial-maroon

Change HTTP request method of useForm

Here's a snippet of my code:

export default function StoreEdit() {
  const { formProps, formLoading, saveButtonProps, onFinish } = useForm();

  return (
    <Edit isLoading={formLoading} saveButtonProps={saveButtonProps}>
      <StoreForm
        formProps={formProps}
        formLoading={formLoading}
        onFinish={onFinish}
      />
    </Edit>
  );
}


How do I make it so that clicking the save button on this form makes a PUT request instead of PATCH?
Was this page helpful?