embarrassing-maroonE
Refine3y ago
32 replies
embarrassing-maroon

Using response data in errorNotification useForm

Hello, My REST API sends a JSON with explanation of what's wrong with the response when request fails(4xx response code) . How do I use that response data inside errorNotification property of useForm hook? In error argument I only have an Error object, not the response data.
Was this page helpful?