[Vuejs]-VueX Not detecting change

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)

Leave a comment