Event handler
How catch api error
When axios interceptor catch error api fired customEvent with 'apiErrorEvent' name.
Example:
window.addEventListener(
    'apiErrorEvent',
    evt => {
        console.log(evt.detail.errors);
    },
    false
);
Last updated
Was this helpful?