Search code examples
angularrxjsngrx

NgRx Selector - cold or hot observable


I know that the ngrx store is a hot observable based on this answer: Is @ngrx/store a hot or cold observable?

My question is if a selector is a hot or cold observable?

Thanks!


Solution

  • It's cold because it won't subscribe to the source until someone subscribes to it.

    Most operators except for the share and publish operators create cold observables.