@apollo/client 3.6.7 → 3.6.8
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/apollo-client.cjs +4 -4
- package/apollo-client.cjs.map +1 -1
- package/apollo-client.min.cjs +1 -1
- package/cache/cache.cjs +1 -1
- package/cache/cache.cjs.map +1 -1
- package/cache/cache.cjs.native.js +1 -1
- package/cache/inmemory/policies.js +1 -1
- package/cache/inmemory/policies.js.map +1 -1
- package/core/ObservableQuery.js +1 -1
- package/core/ObservableQuery.js.map +1 -1
- package/core/core.cjs +2 -2
- package/core/core.cjs.map +1 -1
- package/core/core.cjs.native.js +2 -2
- package/invariantErrorCodes.js +1 -1
- package/package.json +1 -1
- package/react/hooks/hooks.cjs +1 -1
- package/react/hooks/hooks.cjs.map +1 -1
- package/react/hooks/hooks.cjs.native.js +1 -1
- package/react/hooks/useQuery.js +1 -1
- package/react/hooks/useQuery.js.map +1 -1
- package/version.js +1 -1
package/apollo-client.cjs
CHANGED
|
@@ -1300,7 +1300,7 @@ var concat = ApolloLink.concat;
|
|
|
1300
1300
|
|
|
1301
1301
|
var execute = ApolloLink.execute;
|
|
1302
1302
|
|
|
1303
|
-
var version = '3.6.
|
|
1303
|
+
var version = '3.6.8';
|
|
1304
1304
|
|
|
1305
1305
|
var hasOwnProperty$3 = Object.prototype.hasOwnProperty;
|
|
1306
1306
|
function parseAndCheckHttpResponse(operations) {
|
|
@@ -3119,7 +3119,7 @@ function makeFieldFunctionOptions(policies, objectOrReference, fieldSpec, contex
|
|
|
3119
3119
|
cache: policies.cache,
|
|
3120
3120
|
canRead: canRead,
|
|
3121
3121
|
readField: function () {
|
|
3122
|
-
return policies.readField(normalizeReadFieldOptions(arguments, objectOrReference,
|
|
3122
|
+
return policies.readField(normalizeReadFieldOptions(arguments, objectOrReference, variables), context);
|
|
3123
3123
|
},
|
|
3124
3124
|
mergeObjects: makeMergeObjectsFunction(context.store),
|
|
3125
3125
|
};
|
|
@@ -4331,7 +4331,7 @@ var ObservableQuery = (function (_super) {
|
|
|
4331
4331
|
};
|
|
4332
4332
|
if (!useDisposableConcast) {
|
|
4333
4333
|
if (this.concast && this.observer) {
|
|
4334
|
-
this.concast.removeObserver(this.observer
|
|
4334
|
+
this.concast.removeObserver(this.observer);
|
|
4335
4335
|
}
|
|
4336
4336
|
this.concast = concast;
|
|
4337
4337
|
this.observer = observer;
|
|
@@ -6422,7 +6422,7 @@ var InternalState = (function () {
|
|
|
6422
6422
|
if (queryResult)
|
|
6423
6423
|
return queryResult;
|
|
6424
6424
|
var data = result.data; result.partial; var resultWithoutPartial = tslib.__rest(result, ["data", "partial"]);
|
|
6425
|
-
this.toQueryResultCache.set(result, queryResult = tslib.__assign(tslib.__assign(tslib.__assign({ data: data }, resultWithoutPartial), this.obsQueryFields), { client: this.client, observable: this.observable, variables: this.observable.variables, called:
|
|
6425
|
+
this.toQueryResultCache.set(result, queryResult = tslib.__assign(tslib.__assign(tslib.__assign({ data: data }, resultWithoutPartial), this.obsQueryFields), { client: this.client, observable: this.observable, variables: this.observable.variables, called: !this.queryHookOptions.skip, previousData: this.previousData }));
|
|
6426
6426
|
if (!queryResult.error && isNonEmptyArray(result.errors)) {
|
|
6427
6427
|
queryResult.error = new ApolloError({ graphQLErrors: result.errors });
|
|
6428
6428
|
}
|