title: Vuex inside nuxt app throws "Do not mutate vuex store state outside mutation handlers"!
body: <p>In my NUXT app I am using vuex store modules! When I run the app and call</p>
  
  <pre><code>this.$store.dispatch('userStore/setLoggedInUser',currentUser); //default.vue
  </code></pre>
  
  <p>I get an error saying "Do not mutate vuex store state outside mutation handlers" that loops infinitely! </p>
  
  <p>My module looks like this:</p>
  
  <pre><code>const actions = {
    setLoggedInUser({commit},currentUser){
      return new Promise((resolve,reject)=&gt;{
        commit('mutateLoggedInUser',currentUser);
        resolve();
      });
    }
  }
  
  const mutations = {
    mutateLoggedInUser(state,user){
      state.loggedInUser = user;
    }
  }
  </code></pre>
  
  <p>I found a solution (sort of). 
  By setting strict mode to false in the store/index.js file the error disappears. </p>
  
  <pre><code>export const strict = false
  </code></pre>
  
  <p>But this seems like a hacky solution and I dont really understand whats going on. Is this a bug in NUXT or am I doing something weird in my vuex store?</p>