Subjecting State to Good Behavior
summary
Shows how to build readable Angular state with RxJS using a private BehaviorSubject and a public observable, immutably updating state via scan and returning new objects so OnPush works. Two demos: a NASA APOD app with a star counter that increments on click and every 200 ms while held, and a Near‑Earth Objects app that performs optimistic updates with a previousState rollback and separate error subject. Code stays small and readable.
AI-written summary · about
chapters (8)
- 0:00Introduction
- 1:07Why state management libraries
- 3:56Reactive state with RxJS
- 8:08Demo NASA APOD app
- 15:58Optimistic updates concept
- 17:27Demo NASA NEO app
- 26:50Benefits of RxJS state
- 28:37Q&A and resources
related talks
20mSubjecting State to Good Behavior
33mStop Micromanaging State and Start Being Reactive
32mI'm Watching You: A Tale of Observables
30mTackling State in Angular Applications
28mOperate Heavily Dynamic UI’s with Rxjs
26mReactive Programming Future Proof Your Code
19mStepping Up: Observable Services to Observable Store
58mAngular and The Case for RxJS
