Skip to content

Instantly share code, notes, and snippets.

@codenickycode
Last active February 10, 2023 14:32

Revisions

  1. codenickycode revised this gist Feb 10, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion rxjs-higher-order-maps.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    From [Reactive Patterns for RxJS with Angular](https://www.amazon.com/gp/product/1801811512/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1) Chapter 6: Combining Streams
    From [Reactive Patterns for RxJS with Angular](https://www.amazon.com/gp/product/1801811512/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1) Chapter 7: Transforming Streams

    |Operator|Use Case|
    |---|---|
  2. codenickycode created this gist Feb 10, 2023.
    8 changes: 8 additions & 0 deletions rxjs-higher-order-maps.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    From [Reactive Patterns for RxJS with Angular](https://www.amazon.com/gp/product/1801811512/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1) Chapter 6: Combining Streams

    |Operator|Use Case|
    |---|---|
    |`concatMap`|If the order is important and you need to process operations in sequence while waiting for completion.|
    |`mergeMap`|If the order is not important and you need to process operations in parallel to enhance performance.|
    |`switchMap`|If you need to put a cancellation logic to release resources and take always the most recent information.|
    |`exhaustMap`|To ignore new observables while the current one is still ongoing.|