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

Skip to content

Commit 09e4d62

Browse files
committed
refactor(state): fix type issue in connect
1 parent 1994010 commit 09e4d62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ export class RxState<T extends object> implements OnDestroy, Subscribable<T> {
434434
const slice$ = keyOrInputOrSlice$.pipe(
435435
map((v) => projectionStateFn(this.accumulator.state, v as V))
436436
);
437-
this.accumulator.nextSliceObservable(slice$);
437+
this.accumulator.nextSliceObservable(slice$ as Observable<V>);
438438
return;
439439
}
440440

@@ -448,7 +448,7 @@ export class RxState<T extends object> implements OnDestroy, Subscribable<T> {
448448
const slice$ = toObservable(keyOrInputOrSlice$, {
449449
injector: this.injector,
450450
}).pipe(map((v) => projectionStateFn(this.accumulator.state, v as V)));
451-
this.accumulator.nextSliceObservable(slice$);
451+
this.accumulator.nextSliceObservable(slice$ as Observable<V>);
452452
return;
453453
}
454454

0 commit comments

Comments
 (0)