title: Vue.js[vuex] how to dispatch from a mutation?
body: <p>I have a list of filters I want to apply to a json object.</p>
  
  <p>My mutations look like this:</p>
  
  <pre><code>const mutations = {
      setStars(state, payload) {
          state.stars = payload;
          this.dispatch('filter');
      },
  
      setReviews(state, payload) {
          state.reviews = payload;
          this.dispatch('filter');
      }
  };
  </code></pre>
  
  <p>Because of how filters work I need to re-apply them all again since I can't simply keep downfiltering a list because this gets me into trouble when a user de-selects a filter option.</p>
  
  <p>So when a mutation is being made to a stars filter or reviews filter(user is filtering) I need to call a function that runs all my filters.</p>
  
  <p>What is my easiest option here? Can I add some kind of helper function or possible set up an action which calls mutations that actually filter my results?</p>