Expected to achieve: Most correct way to modify specific record stored in the Vuex state with one big (batch) write
Context: Vuex state contains list of records with default values for each record.
Logic Component initialises and uses getter to get one of the records. It's needed to add new properties to the record and overwrite existing values.
Question Is it acceptable to modify the object returned by the Vuex getter and later commit the whole result into the state? And if yes, what would be the best approach considering it will have to overwrite existing record in Vuex.
P.S: I also wonder if it can result in breaking behaviour of other components that are "getting" the same record that will be overwritten, and will appreciate a lot your thoughts on this topic :-)