Closed Peppe87 closed 4 years ago
Hi there,
And thanks for the examples.
The call()
helper is actually to call store actions.
What you want (I presume) is either the sync
helper:
export default {
computed: {
value: sync('myModule/nestedProperties@subproperty1') // using sync, even though we won't get
},
methods: {
setValue (value) {
this.value = value
}
}
}
Or the global set
method:
export default {
methods: {
setValue (value) {
this.$store.set('myModule/nestedProperties@subproperty1', value)
}
}
}
Does that help?
Whups, I forgot to reply 🤦
Yes, thank you, your answer solved my problem!
Hi,
I've a simple a store with some nested properties, such as
How can I use call() helper in a component to set "subproperty1" value? I've unsuccessfully tried various combination to define it, such as:
or
Actually I didn't found any example, is that possible?