~/talk

You don’t know MobX State Tree

Talkat iJS 2018 Spring · 2018-04-11..04-13· [frontend-architecture, javascript]
slides:none on file

DAZN rebuilt a frontend for millions of users using MobX plus MobX State Tree and shows how MST actually enforces structure: models declare types, actions are the only way to mutate models, views are MobX computed getters, and runtime type checks throw if created state mismatches. Stores use store.create(initialState, environment) so environment is injected per tree which aids testing. MST emits snapshots are serializable enabling time travel and server persistence. Advice: prefer many small observers, choose one versus multiple root stores for snapshot and DI tradeoffs, and use composition to share behavior like mobile versus desktop scrolling.

AI-written summary · about

  1. 0:00Intro
  2. 0:39Agenda
  3. 1:10MobX vs Mobile State
  4. 1:32MobX Engine
  5. 4:23Observable State
  6. 8:11State Tree
  7. 9:20Model
  8. 14:18Tree
  9. 18:09MobX Store
  10. 23:47Structure
  11. 25:17One Root Store
  12. 27:04Multiple Root Stores
  13. 29:34Stores Communication
  14. 30:06Default Approach
  15. 32:24Action Wrapper
  16. 33:49Dependency Injection
  17. 36:55Store Composition
  18. 38:45Mobile vs Desktop
  19. 41:10Derivation
  20. 42:04Summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.