title: How to deal with empty response in axios?
body: <p>I use <code>axios</code> with <code>vue.js</code> to fetch data as unlimited pagination. It works fine expect when there is no data to render:</p>
  
  <pre><code> fetchData() {
       this.loading = true
       this.page++;
       axios.get(this.BASE_URL + '/api/jokes/'+'?page='+this.page).then( 
       response =&gt; 
       //how to exist  if there is no data in the response?
        this.jokes = response.data).catch(function (error) {
          console.log(error);
        });
  </code></pre>
  
  <p>I'm wondering how to stop rendering when we reached to the last page and there is no more data to display?</p>
  
  <p>I've looked at the <a href="https://github.com/mzabriskie/axios" rel="nofollow noreferrer">docs</a> but could not find my answer. </p>