Use groupBy in Real RxJS Applications

André Staltz
InstructorAndré Staltz

Share this video with your friends

Send Tweet
Published 5 years ago
Updated 3 years ago

This lesson will show when to apply groupBy in the real world. This RxJS operator is best suited when a source observable represents many data sources, e.g. an observable for multitouch events.

Thomas
Thomas
~ 4 years ago

I'm trying to convert groups into arrays however because my source is using combineLatest with a search$ (filter) that does not complete, the groups cannot complete and I'm left using scan and partial groups that I cannot figure out how to get rid of.

Stephen James
Stephen James
~ 4 years ago

If I had a websocket observable and I wanted different behavior for different values in the stream (some lines are directives that change app behavior others are simply data. Is groupBy the tool to use, or would it be better to create separate filtering observables to process the data coming from the stream?