@firestitch/filter 9.9.3 → 9.9.4

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.
@@ -2647,10 +2647,8 @@
2647
2647
  this._initSavedFilters();
2648
2648
  this._pending$.next(true);
2649
2649
  if (this._savedFilters.enabled) {
2650
- rxjs.combineLatest([
2651
- this._itemsStore.ready$,
2652
- this._savedFilters.load(),
2653
- ])
2650
+ this._savedFilters
2651
+ .load()
2654
2652
  .pipe(operators.takeUntil(this._destroy$))
2655
2653
  .subscribe(function () {
2656
2654
  _this._savedFilters.updateActiveFilter();
@@ -2660,12 +2658,8 @@
2660
2658
  });
2661
2659
  }
2662
2660
  else {
2663
- this._itemsStore.ready$
2664
- .pipe(operators.takeUntil(this._destroy$))
2665
- .subscribe(function () {
2666
- _this._initItemsValues();
2667
- _this._pending$.next(false);
2668
- });
2661
+ this._initItemsValues();
2662
+ this._pending$.next(false);
2669
2663
  }
2670
2664
  this._listenItemsChange();
2671
2665
  };
@@ -2698,6 +2692,12 @@
2698
2692
  };
2699
2693
  ExternalParamsController.prototype._listenItemsChange = function () {
2700
2694
  var _this = this;
2695
+ this._itemsStore.ready$
2696
+ .pipe(operators.filter(function (v) { return v; }), operators.take(1), operators.takeUntil(this._destroy$))
2697
+ .subscribe(function () {
2698
+ _this._saveQueryParams();
2699
+ _this._savePersistedParams();
2700
+ });
2701
2701
  this._itemsStore
2702
2702
  .itemsChange$
2703
2703
  .pipe(operators.takeUntil(this._destroy$))