I'm currently investigating the atomicity of mutations in Vuex. The code snippet I'm reviewing has me questioning whether the CHANGE_A mutation could potentially be triggered while CHANGE_B is still in progress:
const mutations = {
[CHANGE_A](state, DATA) {
Vue.set(this.test, 'left', DATA);
},
[CHANGE_B](state, data) {
Vue.set(this.test, 'right', DATA);
Vue.set(this.test, 'left', DATA);
},
}
Any insights on this matter would be greatly appreciated. Thank you!