@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 CHANGED
@@ -1300,7 +1300,7 @@ var concat = ApolloLink.concat;
1300
1300
 
1301
1301
  var execute = ApolloLink.execute;
1302
1302
 
1303
- var version = '3.6.7';
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, context), context);
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, true);
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: true, previousData: this.previousData }));
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
  }