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

Skip to content

Commit 1994010

Browse files
committed
refactor(state): simplify connect implementation
1 parent b247d37 commit 1994010

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,12 +414,14 @@ export class RxState<T extends object> implements OnDestroy, Subscribable<T> {
414414
!projectValueFn
415415
) {
416416
this.accumulator.nextSliceObservable(keyOrInputOrSlice$);
417+
return;
417418
}
418419

419420
if (isSignal(keyOrInputOrSlice$) && !projectOrSlices$ && !projectValueFn) {
420421
this.accumulator.nextSliceObservable(
421422
toObservable(keyOrInputOrSlice$, { injector: this.injector })
422423
);
424+
return;
423425
}
424426

425427
if (

0 commit comments

Comments
 (0)