Does NgRx store's select operator return a behavioursubject?
Whenever we subscribe to this.store.select('')
, we immediately get the current state of the store slice. Since, even though no value was emitted for sometime when this subscription happened, can we conclude that select is a behaviourSubject?
Solution 1:
this.store.select('')
is a Observable.
State
is a BehaviorSubject
though, that's why you get the current state.