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

@@ -22,7 +22,7 @@
import { Observable, Subject, fromEvent } from "rxjs"
import {
pluck,
map,
share,
switchMapTo,
tap,
@@ -90,7 +90,7 @@ export function watchWorker<T extends WorkerMessage>(
/* Intercept messages from worker-like objects */
const rx$ = fromEvent<MessageEvent>(worker, "message")
.pipe<T>(
pluck("data")
map(({ data }) => data)
)
/* Send and receive messages, return hot observable */