Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 967046a

Browse filesBrowse files
edbznhoebbelsB
authored andcommitted
refactor: drop deprecated tap overload
1 parent 5187d63 commit 967046a
Copy full SHA for 967046a

File tree

2 files changed

+8
-8
lines changed
Filter options

2 files changed

+8
-8
lines changed

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

Copy file name to clipboardExpand all lines: apps/demos/src/app/rx-angular-pocs/cdk/utils/rxjs/observable/stateful-observable.ts
+4-4Lines 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

Copy file name to clipboardExpand all lines: libs/state/selections/src/lib/accumulation-observable.ts
+4-4Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.