Home > Enterprise >  Does NgRx store's select operator return a behavioursubject?
Does NgRx store's select operator return a behavioursubject?

Time:01-15

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?

CodePudding user response:

this.store.select('') is a Observable. State is a BehaviorSubject though, that's why you get the current state.

  •  Tags:  
  • Related