uncertain-scarletU
Refine2y ago
10 replies
uncertain-scarlet

Get response from onCreate mutate

I want to create a resource item in my backend, so I thought I would use useCreate instead of a regular post request, however I want to now be able to read the response of this request.

    const { mutate } = useCreate();


         mutate({
                    resource: "tenants",
                    values: {
                        name: form.getFieldValue("name"),
                        priceId: form.getFieldValue("priceId")
                    }
                })
Was this page helpful?