How to share your RxJS observables for improved performance

How to share your RxJS observables for improved performance

Channel:
Subscribers:
81,900
Published on ● Video Link: https://www.youtube.com/watch?v=H542ZSyubrE



Category:
Tutorial
Duration: 10:24
15,894 views
626


In this tutorial, we investigate how to cache and share an observable stream so that we don't need to continually call the set up code for the source observable for each new subscription (e.g. we don't need to make multiple HTTP requests, or set up web sockets, or other potentially expensive operations).

Get weekly content and tips exclusive to my newsletter: https://mobirony.ck.page/4a331b9076

0:00 Introduction
0:56 A "cold" observable
2:38 Caching the observable
3:40 Making it "hot" with share
5:22 shareReplay
7:48 refCount

Caching and Sharing Firestore Data with RxJS and ShareReplay: https://eliteionic.com/tutorials/caching-and-sharing-firestore-data-with-rxjs-sharereplay/

#angular #rxjs #observables

- More tutorials: https://eliteionic.com
- Follow me on Twitter: https://twitter.com/joshuamorony







Tags:
ionic
tutorial
tutorials
ionic tutorials
ionic framework
coding
coding tutorials
angular
angular tutorials
cordova
cordova tutorials
capacitor tutorials
mobile
mobile apps
apps
html5
ios
android
native
hybrid
pwa
web apps
progressive web applications
programming
ionic 5
react
stenciljs
stencil
performance
ui
ux
animations
screencast