Open

Description
Hello,
I'm struggling to get the error JSON response from a useAsync passing through onReject.
const { isPensing } = useAsync({ promiseFn: myFunction, onResolve: (data) => { console.log(data }, onReject: (error) => { // read Bad Request JSON response } })
The JSON Response I would like to read is:
{"id":"7282782728272827","status":"subscribed"}
Any idea ?
Thank you!
Metadata
Metadata
Assignees
Labels
No labels