mesqueeb / vuex-easy-access

Unified syntax for accessing your Vuex store through simple set() and get() functions + auto generate mutations
https://mesqueeb.github.io/vuex-easy-access/
MIT License
52 stars 6 forks source link

Did you manually add `...defaultMutations(state)` to your modules? #52

Open ukik opened 3 years ago

ukik commented 3 years ago

lack of demo, installation is to short to understand, i have used like suggested, but error comes.

i use quasarframework,

[vuex-easy-access] Error! There is no mutation set for 'alquran/ayat_dialog'. Something went wrong with your vuex-easy-access setup. Did you manually add ...defaultMutations(state) to your modules? See the documentation here: https://github.com/mesqueeb/VuexEasyAccess#setup

  // You can also manually add a mutation like so in the correct module (not recommended!!):
  mutations: {
    'ayat_dialog': (state, payload) => {
      state.ayat_dialog = payload
    }
  }
mesqueeb commented 3 years ago

Yes you need to manually add that.

Here is the setup documentation that shows that :)

https://mesqueeb.github.io/vuex-easy-access/setup.html#setup