short package to extend vuex with some additional mappers
npm i vuex-extended
yarn add vuex-extended
Vuex store preparation
Add the setEntry mutation to your store. If you are using store modules, make sure to insert in at root level of the store.
;const mutations =...createSetEntryMutation// your other mutations;
Now you can use all vuex mappers and the additional mappers in your Vue components.
mapEntry adds computed getters and setters for the given store entries. This is especially usefull for handling form data with v-model.
There are multiple ways to use mapEntry:
You can use dot notation, slash notation and bracket notation for the path.