@apollo/client 3.4.14 → 3.4.15

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.
@@ -1286,7 +1286,7 @@ var concat = ApolloLink.concat;
1286
1286
 
1287
1287
  var execute = ApolloLink.execute;
1288
1288
 
1289
- var version = '3.4.14';
1289
+ var version = '3.4.15';
1290
1290
 
1291
1291
  var hasOwnProperty$2 = Object.prototype.hasOwnProperty;
1292
1292
  function parseAndCheckHttpResponse(operations) {
@@ -3563,13 +3563,18 @@ var InMemoryCache = (function (_super) {
3563
3563
  }
3564
3564
  }
3565
3565
  };
3566
- InMemoryCache.prototype.reset = function () {
3566
+ InMemoryCache.prototype.reset = function (options) {
3567
3567
  var _this = this;
3568
3568
  this.init();
3569
- this.watches.forEach(function (watch) { return _this.maybeBroadcastWatch.forget(watch); });
3570
- this.watches.clear();
3571
- forgetCache(this);
3572
3569
  canonicalStringify.reset();
3570
+ if (options && options.discardWatches) {
3571
+ this.watches.forEach(function (watch) { return _this.maybeBroadcastWatch.forget(watch); });
3572
+ this.watches.clear();
3573
+ forgetCache(this);
3574
+ }
3575
+ else {
3576
+ this.broadcastWatches();
3577
+ }
3573
3578
  return Promise.resolve();
3574
3579
  };
3575
3580
  InMemoryCache.prototype.removeOptimistic = function (idToRemove) {