maoberlehner/vuex-map-fields

...mapFields conditionally based on a prop value (question)

asifaly opened this issue · 0 comments

Is it possible to ...mapFields different state values ?

For example in store i have

editvalues : {
    a: "",
    b: "",
}

newvalues: {
    a: "",
    b: "",
}

In the component based on a prop value, i would like assign ...mapFields(['editvalues']) or ...mapFields(['newvalues']). Is this possible ?