From 2844ad623f9f6b1e20bea107f01ad13ff55e9d18 Mon Sep 17 00:00:00 2001 From: Mathis Hofer Date: Thu, 3 Oct 2019 11:42:34 +0200 Subject: [PATCH] Use concatMap to load pagination entries to avoid skipped pages --- src/app/shared/services/paginated-filtered-entries.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/shared/services/paginated-filtered-entries.service.ts b/src/app/shared/services/paginated-filtered-entries.service.ts index 313bb943e..c0c4ae5b5 100644 --- a/src/app/shared/services/paginated-filtered-entries.service.ts +++ b/src/app/shared/services/paginated-filtered-entries.service.ts @@ -11,7 +11,7 @@ import { import { map, filter, - switchMap, + concatMap, shareReplay, takeUntil, mapTo, @@ -58,7 +58,7 @@ export abstract class PaginatedFilteredEntriesService ); private pageResult$ = combineLatest([this.validFilter$, this.offset$]).pipe( debounceTime(10), - switchMap(spreadTuple(this.loadEntries.bind(this))), + concatMap(spreadTuple(this.loadEntries.bind(this))), shareReplay(1) );