title: Know if there are pending request in axios
body: <p>I'm new in ReactJS and for my ajax call I tried to use <a href="https://github.com/mzabriskie/axios" rel="noreferrer">Axios</a> library. It is awesome, but now I would like know if there is a way for know if there are pending requests in axios interceptor because, I would like, show loading overlay every ajax call (if it is not yet visibile) and remove overlay when ALL promise are resolved.
  For now I developed start with interceptor:</p>
  
  <pre><code>axios.interceptors.request.use(function (config) {
      //here logi of show loading
      return config;
  }, function (error) {
      return Promise.reject(error);
  });
  </code></pre>
  
  <p>And I would like add something like this:</p>
  
  <pre><code>axios.interceptors.respose.use(function (config) {
      //logic remove loading if it is last response
      return config;
  }, function (error) {
      return Promise.reject(error);
  });
  </code></pre>
  
  <p>So how, (if it is possibile) know if it's last response?
  Before using ReactJs, I used Angular 1.x and in <code>$http service</code> there was</p>
  
  <pre><code>$http.pendingRequests
  </code></pre>
  
  <p>There is in axios something like $http service?</p>