Axios Interceptor Explained

Excerpt from https://stackoverflow.com/questions/52737078/how-can-you-use-axios-interceptors

1To talk in simple terms, it is more of a checkpoint for every HTTP action. Every API call that has been made, is passed through this interceptor.
2
3So, why two interceptors?
4
5An API call is made up of two halves, a request, and a response. Since it behaves like a checkpoint, the request and the response have separate interceptors.

Posts in this Series