Hi I am using following mutation:
const [mutate, {loading}] = useMyMutation({
onError: (error) => {
console.log('error', error);
},
});
And then calling it like
mutate()
.then((data) => {
console.log('ALOO ~ mutate ~ data', data);
})
.catch((error) => {
console.log('ALOO ~ mutate ~ error', error);
});
But if I remove the “catch” from it the “then” code is being run even if there is an error.
Is this intentional?