We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 603f2b8 commit 013f4fcCopy full SHA for 013f4fc
src/service-module/service-module.mutations.ts
@@ -138,8 +138,10 @@ export default function makeServiceMutations() {
138
updateItems(state, items)
139
},
140
141
- // Adds an _id to a temp record so that that the addOrUpdate action
142
- // can migrate the temp to the keyedById state.
+ // Promotes temp to "real" item:
+ // - adds _id to temp
143
+ // - removes __isTemp flag
144
+ // - migrates temp from tempsById to keyedById
145
updateTemp(state, { id, tempId }) {
146
const temp = state.tempsById[tempId]
147
if (temp) {
0 commit comments