packages/store/internals/src/ngxs-app-bootstrapped-state.ts

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import { Injectable } from '@angular/core';
import { ReplaySubject } from 'rxjs';

@Injectable({ providedIn: 'root' })
export class ɵNgxsAppBootstrappedState extends ReplaySubject<boolean> {
  constructor() {
    super(1);
  }

  bootstrap(): void {
    this.next(true);
    this.complete();
  }
}