@firestitch/list 12.14.1 → 12.14.2
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.
|
@@ -3880,16 +3880,30 @@
|
|
|
3880
3880
|
}
|
|
3881
3881
|
return rxjs.of(query);
|
|
3882
3882
|
}), operators.switchMap(function (query) {
|
|
3883
|
-
|
|
3883
|
+
if (_this.beforeFetchFn) {
|
|
3884
|
+
return _this.beforeFetchFn(query)
|
|
3885
|
+
.pipe(operators.catchError(function (error, source$) {
|
|
3886
|
+
console.error(error);
|
|
3887
|
+
return rxjs.EMPTY;
|
|
3888
|
+
}));
|
|
3889
|
+
}
|
|
3890
|
+
return rxjs.of(query);
|
|
3884
3891
|
}), operators.switchMap(function (query) {
|
|
3885
|
-
|
|
3892
|
+
var remoteFetch = _this.fetchRemote(query)
|
|
3893
|
+
.pipe(operators.catchError(function (error) {
|
|
3894
|
+
console.error(error);
|
|
3895
|
+
return rxjs.EMPTY;
|
|
3896
|
+
}));
|
|
3897
|
+
return rxjs.combineLatest([rxjs.of(query), remoteFetch]);
|
|
3886
3898
|
}), operators.catchError(function (error, source$) {
|
|
3887
3899
|
console.error(error);
|
|
3888
|
-
return
|
|
3900
|
+
return rxjs.EMPTY;
|
|
3889
3901
|
}), operators.takeUntil(this.onDestroy$))
|
|
3890
3902
|
.subscribe(function (response) {
|
|
3891
3903
|
_this.initialFetch = false;
|
|
3892
3904
|
_this.completeFetch(response);
|
|
3905
|
+
}, function () { }, function () {
|
|
3906
|
+
console.log('fin');
|
|
3893
3907
|
});
|
|
3894
3908
|
};
|
|
3895
3909
|
List.prototype.listenRowsRemove = function () {
|