Looking to achieve: What is the most effective method for updating a specific record within the Vuex state using one bulk write process?
Situation: Within the Vuex state, there exists a collection of records each initialized with default values.
Approach A component initializes and utilizes a getter to access a single record. The goal is to include new properties in the record and replace existing values.
Inquiry Is it considered appropriate to make changes to the object retrieved through the Vuex getter and subsequently commit the entire updated result to the state? Moreover, what would be the optimal strategy for this task considering that it involves overwriting an existing record in Vuex?
P.S: Additionally, I am curious about the potential impact on other components accessing the same record being overwritten. Any insights or advice on this matter would be greatly appreciated! :-)