Skip to content

Commit

Permalink
Merge pull request #812 from orbitjs/dep-patch
Browse files Browse the repository at this point in the history
MemorySource: Use cache.update instead of cache.patch
  • Loading branch information
dgeb authored Feb 11, 2021
2 parents 7201401 + c4ae1c9 commit f5fab57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@orbit/memory/src/memory-source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ export class MemorySource extends RecordSource {
localTransforms.reverse().forEach((transform) => {
const inverseOperations = this._transformInverses[transform.id];
if (inverseOperations) {
this.cache.patch(inverseOperations);
this.cache.update(inverseOperations);
}
this._clearTransformFromHistory(transform.id);
});
Expand Down Expand Up @@ -412,7 +412,7 @@ export class MemorySource extends RecordSource {
removed.reverse().forEach((id) => {
const inverseOperations = this._transformInverses[id];
if (inverseOperations) {
this.cache.patch(inverseOperations);
this.cache.update(inverseOperations);
}
this._clearTransformFromHistory(id);
});
Expand Down

0 comments on commit f5fab57

Please sign in to comment.