Skip to content

Commit

Permalink
Use concatMap to load pagination entries to avoid skipped pages
Browse files Browse the repository at this point in the history
  • Loading branch information
hupf committed Oct 3, 2019
1 parent b0cdf20 commit 2844ad6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/shared/services/paginated-filtered-entries.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
import {
map,
filter,
switchMap,
concatMap,
shareReplay,
takeUntil,
mapTo,
Expand Down Expand Up @@ -58,7 +58,7 @@ export abstract class PaginatedFilteredEntriesService<T, F>
);
private pageResult$ = combineLatest([this.validFilter$, this.offset$]).pipe(
debounceTime(10),
switchMap(spreadTuple(this.loadEntries.bind(this))),
concatMap(spreadTuple(this.loadEntries.bind(this))),
shareReplay(1)
);

Expand Down

0 comments on commit 2844ad6

Please sign in to comment.