Skip to content

Error management #21

@svengau

Description

@svengau

Hi,
I'm facing an issue to display mutation errors using relate.

In helpers/request.js, the errors are dispatched, but not returned by the promise.

promise = promise.then(({data, errors}) => {
          dispatch({type, data, errors, ...params});
          return data;
});

And in the reducer, the errors are not handled at all.

My first sight will be to update the request helper, and return the errors in the promise, but I may miss something.

Any suggestion on how handle errors using relate ?

Thanks & Regards,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions