Replaced operators: ajax -> fetch, pluck -> map

This commit is contained in:
squidfunk
2020-09-27 22:19:38 +02:00
parent 0c4ddfcd70
commit ab513f036e
32 changed files with 116 additions and 170 deletions

View File

@@ -33,7 +33,6 @@ import {
finalize,
map,
observeOn,
pluck,
switchMap,
tap
} from "rxjs/operators"
@@ -82,7 +81,7 @@ export function watchMain(
/* Compute necessary adjustment for header */
const adjust$ = header$
.pipe(
pluck("height"),
map(({ height }) => height),
distinctUntilChanged()
)

View File

@@ -26,7 +26,6 @@ import {
filter,
map,
mapTo,
pluck,
startWith,
switchMap
} from "rxjs/operators"
@@ -93,7 +92,7 @@ export function mountSearchResult(
return rx$
.pipe(
filter(isSearchResultMessage),
pluck("data"),
map(({ data }) => data),
applySearchResult(el, { query$, ready$, fetch$ }),
startWith([])
)