Skip to content

There was a undescribed "Breaking change" in useMutation hook #9065

@TriPSs

Description

@TriPSs

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


Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions