We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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"}
{"id":"7282782728272827","status":"subscribed"}
Any idea ? Thank you!