Since this commit there was a "breaking change" in the useMutation hook.
Intended outcome:
When doing the following code:
const { errors } = await doMutation()
errors was filled if there was an error from the API
Actual outcome:
Error is now thrown instead of returned.
How to reproduce the issue:
// Make sure this mutation returns a error
const { errors } = await doMutation()
// Errors wont be called since
console.log(errors)
Versions
Everything after 3.4.0