Skip to content

Commit 0efd1b4

Browse files
authored
Merge pull request #97 from ReactiveDB/perf/mutation-patch
perf(Mutation): drop object spread operation in patch()
2 parents e68d870 + 5ba9e6e commit 0efd1b4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/storage/modules/Mutation.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@ export class Mutation {
9999
}
100100

101101
patch(patch: Object) {
102-
this.params = { ...this.params, ...patch }
102+
forEach(patch, (val, key) => {
103+
this.params[key] = val
104+
})
103105
return this
104106
}
105107

0 commit comments

Comments
 (0)