...mapFields conditionally based on a prop value (question)
asifaly opened this issue · 0 comments
asifaly commented
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 ?