@apollo/client
Advanced tools
Comparing version 0.0.0-pr-11706-20240319212651 to 0.0.0-pr-11713-20240320175257
@@ -431,3 +431,3 @@ 'use strict'; | ||
var version = "0.0.0-pr-11706-20240319212651"; | ||
var version = "0.0.0-pr-11713-20240320175257"; | ||
@@ -434,0 +434,0 @@ function maybe(thunk) { |
{ | ||
"name": "@apollo/client", | ||
"version": "0.0.0-pr-11706-20240319212651", | ||
"version": "0.0.0-pr-11713-20240320175257", | ||
"description": "A fully-featured caching GraphQL client.", | ||
@@ -5,0 +5,0 @@ "private": false, |
@@ -138,3 +138,4 @@ import { __assign } from "tslib"; | ||
return OBSERVED_CHANGED_OPTIONS.some(function (option) { | ||
return !equal(_this.watchQueryOptions[option], watchQueryOptions[option]); | ||
return option in watchQueryOptions && | ||
!equal(_this.watchQueryOptions[option], watchQueryOptions[option]); | ||
}); | ||
@@ -240,3 +241,3 @@ }; | ||
returnedPromise | ||
.then(function () { | ||
.then(function (result) { | ||
// In the case of `fetchMore`, this promise is resolved before a cache | ||
@@ -255,12 +256,4 @@ // result is emitted due to the fact that `fetchMore` sets a `no-cache` | ||
if (_this.promise.status === "pending") { | ||
// Use the current result from the observable instead of the value | ||
// resolved from the promise. This avoids issues in some cases where | ||
// the raw resolved value should not be the emitted value, such as | ||
// when a `fetchMore` call returns an empty array after it has | ||
// reached the end of the list. | ||
// | ||
// See the following for more information: | ||
// https://github.com/apollographql/apollo-client/issues/11642 | ||
_this.result = _this.observable.getCurrentResult(); | ||
(_a = _this.resolve) === null || _a === void 0 ? void 0 : _a.call(_this, _this.result); | ||
_this.result = result; | ||
(_a = _this.resolve) === null || _a === void 0 ? void 0 : _a.call(_this, result); | ||
} | ||
@@ -267,0 +260,0 @@ }); |
@@ -124,3 +124,4 @@ 'use strict'; | ||
return OBSERVED_CHANGED_OPTIONS.some(function (option) { | ||
return !equality.equal(_this.watchQueryOptions[option], watchQueryOptions[option]); | ||
return option in watchQueryOptions && | ||
!equality.equal(_this.watchQueryOptions[option], watchQueryOptions[option]); | ||
}); | ||
@@ -211,8 +212,8 @@ }; | ||
returnedPromise | ||
.then(function () { | ||
.then(function (result) { | ||
setTimeout(function () { | ||
var _a; | ||
if (_this.promise.status === "pending") { | ||
_this.result = _this.observable.getCurrentResult(); | ||
(_a = _this.resolve) === null || _a === void 0 ? void 0 : _a.call(_this, _this.result); | ||
_this.result = result; | ||
(_a = _this.resolve) === null || _a === void 0 ? void 0 : _a.call(_this, result); | ||
} | ||
@@ -219,0 +220,0 @@ }); |
@@ -7,3 +7,3 @@ 'use strict'; | ||
var version = "0.0.0-pr-11706-20240319212651"; | ||
var version = "0.0.0-pr-11713-20240320175257"; | ||
@@ -10,0 +10,0 @@ function maybe(thunk) { |
@@ -1,2 +0,2 @@ | ||
export var version = "0.0.0-pr-11706-20240319212651"; | ||
export var version = "0.0.0-pr-11713-20240320175257"; | ||
//# sourceMappingURL=version.js.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
6674622
58026