Skip to content

RTKQ feature proposal: Add transformError property to the endpoints #1139

Closed
@donatoaguirre24

Description

@donatoaguirre24

It would be great to have a transformResponse equivalent for errors. The transformError property would allow manipulation of the error returned by a query or mutation before it hits the cache.

This new property would help to decouple error parsing logic from the view. The service will encapsulate the logic, and the views will act just as a presenter of the data/error the query or mutation returns.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions