title: How to create getters and setters for vuex namespaced module state
body: <p>If I have a Vuex module which is namespaced, how to create the getters and setters for the states in that module when using these state in Vue components?</p>
  
  <pre><code>// My component
  new Vue({
  
   computed: {
  
     // How do I add setters also below????
  
     ...mapState('nameSpacedModA', {
         a : state =&gt; state.a,
         // ...
     },
  
  
     // Following will only add getters..
     // How to add setter ??? 
  
     ...mapGetters('nameSpacedModA', {
           a: 'a', 
           b: 'b' //, ...
      }
  }
  </code></pre>
  
  <p>I am binding 'a' to a text input on a form using v-model and then when I edit the control value, Vue is giving error:</p>
  
  <blockquote>
    <p>[Vue warn]: Computed property "a" was assigned to but it has no
    setter.</p>
  </blockquote>
  
  <p>How to solve this?</p>