Category "rxjs"

RxJS pipe to filter into 2+branches

Let's assume we have a Subject, that can return a given set of values, all of which might require a different approach to them. We could debate whether or not t

How can I use RxJS to generate a requestAnimationFrame loop?

My goal is to create an animation loop à la requestAnimationFrame so that I could do something like this: animationObservable.subscribe(() => { /

BehaviorSubject vs Observable?

I'm looking into Angular RxJs patterns and I don't understand the difference between a BehaviorSubject and an Observable. From my understanding, a BehaviorSubj

Angular EventEmitter in merge()

I made a component that shows a list of data-items which can be changed either by pageSelection, sortOrder or filterChanges. This is the code: import { EventEmi

Filter undefined from RxJS Observable

Is there a specific idiom or utility used to filter undefined from RxJS observables? This code has the behavior I want: obs.pipe(filter(x => x !== undefined)

Filter undefined from RxJS Observable

Is there a specific idiom or utility used to filter undefined from RxJS observables? This code has the behavior I want: obs.pipe(filter(x => x !== undefined)

Angular/RxJS When should I unsubscribe from `Subscription`

When should I store the Subscription instances and invoke unsubscribe() during the ngOnDestroy life cycle and when can I simply ignore them? Saving all subscrip

Loading indication with a delay and anti-flickering in RxJS

I want to implement loading indication using RxJS (version 6). A loading indicator (a spinner) would be shown in a component before asynchronous data call finis

Loading indication with a delay and anti-flickering in RxJS

I want to implement loading indication using RxJS (version 6). A loading indicator (a spinner) would be shown in a component before asynchronous data call finis

Loading indication with a delay and anti-flickering in RxJS

I want to implement loading indication using RxJS (version 6). A loading indicator (a spinner) would be shown in a component before asynchronous data call finis

Loading indication with a delay and anti-flickering in RxJS

I want to implement loading indication using RxJS (version 6). A loading indicator (a spinner) would be shown in a component before asynchronous data call finis