From bb93818edffe258462f28e1b7cfb905a9c621b62 Mon Sep 17 00:00:00 2001 From: Jerel Miller Date: Wed, 30 Aug 2023 21:20:36 -0600 Subject: [PATCH] Remove the argument to QueryInfo#getDiff which is not needed --- src/core/QueryInfo.ts | 6 +++--- src/core/QueryManager.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/QueryInfo.ts b/src/core/QueryInfo.ts index 0323c42cefb..c147a7eccd2 100644 --- a/src/core/QueryInfo.ts +++ b/src/core/QueryInfo.ts @@ -157,14 +157,14 @@ export class QueryInfo { this.dirty = false; } - getDiff(variables = this.variables): Cache.DiffResult { - const options = this.getDiffOptions(variables); + getDiff(): Cache.DiffResult { + 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") { diff --git a/src/core/QueryManager.ts b/src/core/QueryManager.ts index a2493076e6a..efdd3c05a92 100644 --- a/src/core/QueryManager.ts +++ b/src/core/QueryManager.ts @@ -1516,7 +1516,7 @@ export class QueryManager { networkStatus, }); - const readCache = () => queryInfo.getDiff(variables); + const readCache = () => queryInfo.getDiff(); const resultsFromCache = ( diff: Cache.DiffResult,