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

Skip to content

Commit 2bd93d5

Browse files
committed
comment was added
1 parent 36a6fa4 commit 2bd93d5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libs/state/src/lib/rx-state.service.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,7 @@ export class RxState<T extends object> implements OnDestroy, Subscribable<T> {
589589
): void {
590590
const sideEffect = obsOrObsWithSideEffect.pipe(
591591
catchError((e) => {
592+
// used injector for compatibility with https://github.com/rx-angular/rx-angular/blob/master/libs/state/docs/usage.md#inherit
592593
const errorHandler = inject(ErrorHandler, InjectFlags.Optional);
593594
errorHandler?.handleError(e);
594595
return EMPTY;

0 commit comments

Comments
 (0)