@apollo/client 3.9.10 → 3.9.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/apollo-client.cjs +7 -6
- package/apollo-client.cjs.map +1 -1
- package/apollo-client.min.cjs +1 -1
- package/core/core.cjs +1 -1
- package/core/core.cjs.map +1 -1
- package/core/core.cjs.native.js +1 -1
- package/dev/dev.cjs +1 -1
- package/dev/dev.cjs.map +1 -1
- package/dev/dev.cjs.native.js +1 -1
- package/package.json +1 -1
- package/react/internal/cache/QueryReference.js +6 -5
- package/react/internal/cache/QueryReference.js.map +1 -1
- package/react/internal/internal.cjs +6 -5
- package/react/internal/internal.cjs.map +1 -1
- package/react/internal/internal.cjs.native.js +6 -5
- package/utilities/globals/globals.cjs +1 -1
- package/utilities/globals/globals.cjs.map +1 -1
- package/utilities/globals/globals.cjs.native.js +1 -1
- package/version.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @apollo/client
|
|
2
2
|
|
|
3
|
+
## 3.9.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#11769](https://github.com/apollographql/apollo-client/pull/11769) [`04132af`](https://github.com/apollographql/apollo-client/commit/04132af121c9b48d6e03eb733b9b91f825defbac) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Fix an issue where using `skipToken` or the `skip` option with `useSuspenseQuery` in React's strict mode would perform a network request.
|
|
8
|
+
|
|
3
9
|
## 3.9.10
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/apollo-client.cjs
CHANGED
|
@@ -31,7 +31,7 @@ function _interopNamespace(e) {
|
|
|
31
31
|
var equal__default = /*#__PURE__*/_interopDefaultLegacy(equal);
|
|
32
32
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
33
33
|
|
|
34
|
-
var version = "3.9.
|
|
34
|
+
var version = "3.9.11";
|
|
35
35
|
|
|
36
36
|
function maybe(thunk) {
|
|
37
37
|
try {
|
|
@@ -8155,16 +8155,17 @@ var InternalQueryReference = (function () {
|
|
|
8155
8155
|
InternalQueryReference.prototype.reinitialize = function () {
|
|
8156
8156
|
var observable = this.observable;
|
|
8157
8157
|
var originalFetchPolicy = this.watchQueryOptions.fetchPolicy;
|
|
8158
|
+
var avoidNetworkRequests = originalFetchPolicy === "no-cache" || originalFetchPolicy === "standby";
|
|
8158
8159
|
try {
|
|
8159
|
-
if (
|
|
8160
|
-
observable.
|
|
8161
|
-
observable.silentSetOptions({ fetchPolicy: "cache-first" });
|
|
8160
|
+
if (avoidNetworkRequests) {
|
|
8161
|
+
observable.silentSetOptions({ fetchPolicy: "standby" });
|
|
8162
8162
|
}
|
|
8163
8163
|
else {
|
|
8164
|
-
observable.
|
|
8164
|
+
observable.resetLastResults();
|
|
8165
|
+
observable.silentSetOptions({ fetchPolicy: "cache-first" });
|
|
8165
8166
|
}
|
|
8166
8167
|
this.subscribeToQuery();
|
|
8167
|
-
if (
|
|
8168
|
+
if (avoidNetworkRequests) {
|
|
8168
8169
|
return;
|
|
8169
8170
|
}
|
|
8170
8171
|
observable.resetDiff();
|