0๐
โ
I use vuex-maps-fields as a shortcut, they provide higher level get()
and set()
whitin vuejs so you can use v-model with them
I mutated the object on messages
so I need to clone it before applying new value. Here how the library does that so It wont mutate your state outside mutations
https://github.com/maoberlehner/vuex-map-fields/blob/8ce9a2751be7996214c0c68c25afa2f2ef5b7446/src/index.js#L61
Source:stackexchange.com