title: (Vue.js + VUEX) Commit inside Action promise not running
body: <p>I have an action that returns a promise (so I can have a loading state on my Component)</p>
  
  <p>For some reason the commit is not being triggered, nothing is run after the commit line, no errors as well</p>
  
  <p>This is my action:</p>
  
  <pre><code>add({ commit }, data ) {
      return new Promise((resolve, reject) =&gt; {       
          axios.post('/spaces',data).then(
              response =&gt; {   
                  commit('ADD_SPACE',response.data);  
                  //this line only runs if put before the commit.
                  resolve(response.data);
              },
              error =&gt; {                  
                  reject(error);          
              }); 
      });
  }
  </code></pre>
  
  <p>The mutation:</p>
  
  <pre><code>    ADD_SPACE (state, space) {
          state.spaces.push(space);         
      }
  </code></pre>