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]-SVG Pattern doesn't change fill color
- [Vuejs]-How Can I Capture Property Updates on Vue Material's md-dialog?
Source:stackexchange.com