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

Skip to content

Commit 967046a

Browse files
edbznhoebbelsB
authored andcommitted
refactor: drop deprecated tap overload
1 parent 5187d63 commit 967046a

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

apps/demos/src/app/rx-angular-pocs/cdk/utils/rxjs/observable/stateful-observable.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ export function createAccumulationObservable<T extends object>(
5555
(state, [slice, stateAccumulator]) => stateAccumulator(state, slice),
5656
{} as T
5757
),
58-
tap(
59-
(newState) => (compositionObservable.state = newState),
60-
(error) => console.error(error)
61-
),
58+
tap({
59+
next: (newState) => (compositionObservable.state = newState),
60+
error: (error) => console.error(error),
61+
}),
6262
catchError((e) => EMPTY)
6363
),
6464
{

libs/state/selections/src/lib/accumulation-observable.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ export function createAccumulationObservable<T extends object>(
4444
(state, [slice, stateAccumulator]) => stateAccumulator(state, slice),
4545
{} as T
4646
),
47-
tap(
48-
(newState) => (compositionObservable.state = newState),
49-
(error) => console.error(error)
50-
),
47+
tap({
48+
next: (newState) => (compositionObservable.state = newState),
49+
error: (error) => console.error(error),
50+
}),
5151
catchError((e) => EMPTY)
5252
),
5353
{

0 commit comments

Comments
 (0)