@apollo/client 3.8.4 → 3.9.0-alpha.0

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
@@ -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.8.4";
34
+ var version = "3.9.0-alpha.0";
35
35
 
36
36
  function maybe(thunk) {
37
37
  try {
@@ -5708,6 +5708,7 @@ var QueryInfo = (function () {
5708
5708
  };
5709
5709
  QueryInfo.prototype.markResult = function (result, document, options, cacheWriteBehavior) {
5710
5710
  var _this = this;
5711
+ result = tslib.__assign({}, result);
5711
5712
  var merger = new DeepMerger();
5712
5713
  var graphQLErrors = isNonEmptyArray(result.errors)
5713
5714
  ? result.errors.slice(0)
@@ -5736,7 +5737,7 @@ var QueryInfo = (function () {
5736
5737
  overwrite: cacheWriteBehavior === 1,
5737
5738
  });
5738
5739
  _this.lastWrite = {
5739
- result: result,
5740
+ result: tslib.__assign({}, result),
5740
5741
  variables: options.variables,
5741
5742
  dmCount: destructiveMethodCounts.get(_this.cache),
5742
5743
  };
@@ -5753,15 +5754,14 @@ var QueryInfo = (function () {
5753
5754
  _this.updateWatch(options.variables);
5754
5755
  }
5755
5756
  _this.updateLastDiff(diff, diffOptions);
5756
- if (diff.complete) {
5757
- result.data = diff.result;
5758
- }
5757
+ result.data = diff.result;
5759
5758
  });
5760
5759
  }
5761
5760
  else {
5762
5761
  this.lastWrite = void 0;
5763
5762
  }
5764
5763
  }
5764
+ return result;
5765
5765
  };
5766
5766
  QueryInfo.prototype.markReady = function () {
5767
5767
  this.networkError = null;
@@ -6432,7 +6432,7 @@ var QueryManager = (function () {
6432
6432
  graphQLErrors: graphQLErrors,
6433
6433
  }));
6434
6434
  }
6435
- queryInfo.markResult(result, linkDocument, options, cacheWriteBehavior);
6435
+ result = queryInfo.markResult(result, linkDocument, options, cacheWriteBehavior);
6436
6436
  queryInfo.markReady();
6437
6437
  }
6438
6438
  var aqr = {