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

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store