refactor: replace first operator usages (#8352)

Replaces all usages of the `first` operator with `take(1)` in order to avoid some cryptic errors that `first` throws when the observable completes before it has emitted a value.
This commit is contained in:
Kristiyan Kostadinov
2017-11-21 17:59:50 +01:00
committed by Jeremy Elbourn
parent 2cf3860e59
commit 623be22e58
16 changed files with 36 additions and 35 deletions
+1
View File
@@ -74,6 +74,7 @@ export const rollupGlobals = {
'rxjs/operators/debounceTime': 'Rx.Observable',
'rxjs/operators/takeUntil': 'Rx.Observable',
'rxjs/operators/first': 'Rx.Observable',
'rxjs/operators/take': 'Rx.Observable',
'rxjs/operators/filter': 'Rx.Observable',
'rxjs/operators/map': 'Rx.Observable',
'rxjs/operators/tap': 'Rx.Observable',