0👍
for better or worse (probably worse) I’ve stopped updating state with state.x = newX
and started using Vue.set(state, 'x', newX)
this resolved all my issues with getting my views updated, but somehow I have a feeling there’s a better solution than this.
so in your case I would write this
Vue.set($store.state.object.level1, 'level2', newValueForLevel2)
- [Vuejs]-How do I send an image to a PHP API using VueJS?
- [Vuejs]-Slot content of template into my inline component
Source:stackexchange.com