lemon-mart
lemon-mart copied to clipboard
Improve rxjs performance with shareReplay and distinctUntilChanged
Update auth provider observables to utilize shareReplay and distinctUntilChanged to avoid unnecessary change detection.
More info: https://www.learnrxjs.io/learn-rxjs/operators/multicasting/sharereplay https://rxjs-dev.firebaseapp.com/api/operators/distinctUntilChanged
https://cartant.medium.com/rxjs-whats-changed-with-sharereplay-65c098843e95