0👍
If vuex observer/ reactivity is the reason for the ui block one can simply freeze big objects to prevent reactivity:
actions = {
// ...,
assignBigData(context, data){
//...
// mutate data
const clone = {...data}
context.commit('commiter', Object.freeze(clone))
},
selectedEvent: async function(context, ...args){
const response = await request()
context.dispatch('assignBigData', Object.freeze(response))
}
}
- [Vuejs]-Process toFormData from view
- [Vuejs]-How to keep track of an array change in Vue.js when the index is a dynamic value?
Source:stackexchange.com