I'm wondering if I can get a regular value type from NGRX state and not an Observable?
Since the State
class extends BehaviorSubject
:
export class State<T> extends BehaviorSubject<any> implements OnDestroy { ... }
I think you can get the current state by injecting State
and calling state.getValue()
.