Performance and Sanity
summary
Converts an Angular service to MobX with MobX Angular and applies observable computed action autorun, measures change-detection runs, and shows computed values cache so balance recalculates once instead of repeatedly. Persists state to localStorage, uses MobX debug to log actions and reactions, and prints component dependency trees. Demo mutates plain objects and decorators, reduces unnecessary updates, and the live demo successfully preserves transactions and updates only the affected components.
AI-written summary · about
chapters (6)
- 0:00Start
- 3:57App Component
- 6:37Change Detection Strategy on Push
- 11:23Action Decorator
- 17:37Autorun Directive
- 20:20Shameless Promotions
related talks
27mAngular, MobX, happiness
59mMobX and the unique symbiosis of predictability and speed
34mReactive State Management For Your Angular App
40mOptimizing an Angular application
52mState Management in Angular: From Facades to NgRx and back
52mAngular Loves Data
20mSubjecting State to Good Behavior
33mStop Micromanaging State and Start Being Reactive
