@rxap/material-table-system 12.5.0 → 12.5.1

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.
@@ -1095,13 +1095,16 @@
1095
1095
  this.matPaginator = matPaginator;
1096
1096
  }
1097
1097
  PersistentPaginatorDirective.prototype.ngOnInit = function () {
1098
+ var _this = this;
1098
1099
  var config = this.restoreConfig();
1099
1100
  if (config) {
1100
1101
  this.matPaginator.pageSize = config.pageSize;
1101
1102
  }
1103
+ this._subscription = this.matPaginator.page.pipe(operators.tap(function () { return _this.storeConfig(); })).subscribe();
1102
1104
  };
1103
1105
  PersistentPaginatorDirective.prototype.ngOnDestroy = function () {
1104
- this.storeConfig();
1106
+ var _a;
1107
+ (_a = this._subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
1105
1108
  };
1106
1109
  PersistentPaginatorDirective.prototype.getKey = function () {
1107
1110
  return 'rxap_mat-paginator-persistent' + this.id;