to show error messages you need a way to communicate with your UI thread. You may think you are abstracting it from react or redux, but in essense you must be dispatching an action to show the error message. This means that your interceptor has knowledge of redux actions, since at the end of the day, it has to notify react to "show something".

Front-end ReactJS Developer — https://aggelos.dev

Front-end ReactJS Developer — https://aggelos.dev