Skip to content

Commit

Permalink
Remove the argument to QueryInfo#getDiff which is not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Aug 31, 2023
1 parent 4ba46a3 commit bb93818
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/core/QueryInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,14 +157,14 @@ export class QueryInfo {
this.dirty = false;
}

getDiff(variables = this.variables): Cache.DiffResult<any> {
const options = this.getDiffOptions(variables);
getDiff(): Cache.DiffResult<any> {
const options = this.getDiffOptions();

if (this.lastDiff && equal(options, this.lastDiff.options)) {
return this.lastDiff.diff;
}

this.updateWatch((this.variables = variables));
this.updateWatch(this.variables);

const oq = this.observableQuery;
if (oq && oq.options.fetchPolicy === "no-cache") {
Expand Down
2 changes: 1 addition & 1 deletion src/core/QueryManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1516,7 +1516,7 @@ export class QueryManager<TStore> {
networkStatus,
});

const readCache = () => queryInfo.getDiff(variables);
const readCache = () => queryInfo.getDiff();

const resultsFromCache = (
diff: Cache.DiffResult<TData>,
Expand Down

0 comments on commit bb93818

Please sign in to comment.