re: Watch for Vuex State changes! VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Why you use Vue.set(state, 'status', status) instead of just state.status = status?
 

In this case it is not necessary and I could have use state.status = status, no worries.

But as I'm more concerned with (vuejs.org/v2/guide/reactivity.html) I've got used to always write Vue.set to avoid any pitfalls while developing. So it is just a way to keep the codebase concise (in one mutation it is state.prop = prop and in the other is Vue.set...).

code of conduct - report abuse