We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7aec84d commit 0aa1582Copy full SHA for 0aa1582
modules/component-store/src/component-store.ts
@@ -83,9 +83,8 @@ export class ComponentStore<T extends object> implements OnDestroy {
83
private isInitialized = false;
84
// Needs to be after destroy$ is declared because it's used in select.
85
readonly state$: Observable<T> = this.select((s) => s);
86
- // Signal of state$
87
readonly state: Signal<T> = toSignal(
88
- this.state$.pipe(takeUntil(this.destroy$)),
+ this.stateSubject$.pipe(takeUntil(this.destroy$)),
89
{ requireSync: false, manualCleanup: true }
90
) as Signal<T>;
91
private ɵhasProvider = false;
0 commit comments