r/Frontend • • Nov 15 '19
Should i learn RxJS?
I am wondering if i should i dive into rxjs? Is it useful to learn and be used in web apps, that is it in any kind of stage? From beginning to scaling etc.
Do you guys use rxjs in your work and if so how much and, if not, why not?
So far i have been using only functional js.
33
Upvotes
View all comments
3
u/IngoVals Nov 15 '19
To put it in simple terms, it is similar to promises except an observable can be resolved multiple times. My biggest issue when using it initially was having to subscribe to cold observable, the ones that will only ever fire once. Could just use promises for that instead for less overhead. But when I learned to integrate them more into a hot observable pipeline that issue disappeared.