Skip to content

Commit 2303f26

Browse files
committed
addOrUpdate: init Model but don't add to store before ready
1 parent a914d74 commit 2303f26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/service-module/service-module.actions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ export default function makeServiceActions(service: Service<any>) {
322322
service.FeathersVuexModel &&
323323
!(item instanceof service.FeathersVuexModel)
324324
) {
325-
item = new service.FeathersVuexModel(item)
325+
item = new service.FeathersVuexModel(item, { commit: false })
326326
}
327327

328328
// If the item has a matching temp, update the temp and provide it as the new item.

0 commit comments

Comments
 (0)