@apollo/client
Advanced tools
Comparing version 3.9.10 to 3.9.11
@@ -431,3 +431,3 @@ 'use strict'; | ||
var version = "3.9.10"; | ||
var version = "3.9.11"; | ||
@@ -434,0 +434,0 @@ function maybe(thunk) { |
{ | ||
"name": "@apollo/client", | ||
"version": "3.9.10", | ||
"version": "3.9.11", | ||
"description": "A fully-featured caching GraphQL client.", | ||
@@ -5,0 +5,0 @@ "private": false, |
@@ -98,12 +98,13 @@ import { __assign } from "tslib"; | ||
var originalFetchPolicy = this.watchQueryOptions.fetchPolicy; | ||
var avoidNetworkRequests = originalFetchPolicy === "no-cache" || originalFetchPolicy === "standby"; | ||
try { | ||
if (originalFetchPolicy !== "no-cache") { | ||
if (avoidNetworkRequests) { | ||
observable.silentSetOptions({ fetchPolicy: "standby" }); | ||
} | ||
else { | ||
observable.resetLastResults(); | ||
observable.silentSetOptions({ fetchPolicy: "cache-first" }); | ||
} | ||
else { | ||
observable.silentSetOptions({ fetchPolicy: "standby" }); | ||
} | ||
this.subscribeToQuery(); | ||
if (originalFetchPolicy === "no-cache") { | ||
if (avoidNetworkRequests) { | ||
return; | ||
@@ -110,0 +111,0 @@ } |
@@ -85,12 +85,13 @@ 'use strict'; | ||
var originalFetchPolicy = this.watchQueryOptions.fetchPolicy; | ||
var avoidNetworkRequests = originalFetchPolicy === "no-cache" || originalFetchPolicy === "standby"; | ||
try { | ||
if (originalFetchPolicy !== "no-cache") { | ||
if (avoidNetworkRequests) { | ||
observable.silentSetOptions({ fetchPolicy: "standby" }); | ||
} | ||
else { | ||
observable.resetLastResults(); | ||
observable.silentSetOptions({ fetchPolicy: "cache-first" }); | ||
} | ||
else { | ||
observable.silentSetOptions({ fetchPolicy: "standby" }); | ||
} | ||
this.subscribeToQuery(); | ||
if (originalFetchPolicy === "no-cache") { | ||
if (avoidNetworkRequests) { | ||
return; | ||
@@ -97,0 +98,0 @@ } |
@@ -7,3 +7,3 @@ 'use strict'; | ||
var version = "3.9.10"; | ||
var version = "3.9.11"; | ||
@@ -10,0 +10,0 @@ function maybe(thunk) { |
@@ -1,2 +0,2 @@ | ||
export var version = "3.9.10"; | ||
export var version = "3.9.11"; | ||
//# 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
6703892
58234
144
7
13