RxJS Recipes
summary
Concrete recipes for RxJS with a working demo: a "World of Jokes" app that polls an API every 5s using timer + exhaustMap and shareReplay (the repeater pattern), caches results, and only swaps visible jokes when the user clicks an update (enrichment via withLatestFrom). It shows a notification only after the second refresh (skip(1)), manages settings as a BehaviorSubject + scan, toggles polling with switchMap, and implements retry-on-error vs wait-for-online logic; all patterns are composable and demonstrated live.
AI-written summary · about
chapters (17)
- 0:00Intro
- 3:36Different Levels of Patterns
- 4:45World of Jokes
- 7:31Identifying Patterns
- 8:40Requirement #1
- 9:26Application Architecture
- 11:56Repeater
- 12:36Requirement #2
- 15:46Pattern #2
- 16:15Requirement #3
- 19:32Group Aggregator
- 23:21Requirement #4
- 23:33State Manager
- 24:09Requirement #5
- 28:13Pattern #5
- 28:51Requirement #6
- 31:45Key Takeaway's








