Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eeee73b

Browse files
committed
refactor(state): use map instead of deprecated mapTo
1 parent a787afb commit eeee73b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

libs/state/effects/src/lib/effects.service.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
import {
1414
catchError,
1515
filter,
16-
mapTo,
16+
map,
1717
mergeAll,
1818
share,
1919
takeUntil,
@@ -165,7 +165,10 @@ export class RxEffects implements OnDestroy$ {
165165
}
166166
const effectId = RxEffects.nextId++;
167167
const destroy$ = (this.destroyers[effectId] = new Subject<void>());
168-
const applyBehavior = pipe(mapTo(effectId), takeUntil(destroy$));
168+
const applyBehavior = pipe(
169+
map(() => effectId),
170+
takeUntil(destroy$),
171+
);
169172
if (fnOrObj != null) {
170173
this.observables$.next(
171174
from(obsOrSub).pipe(

0 commit comments

Comments
 (0)