~/talk

Do This, Not That! Side-Effect Management in UIs

Talkat Lambda World 2017 · 2017-10-26..10-27· [react, frontend-architecture]
slides:none on file

Compares using redux-thunk (awaiting promises inside action creators) versus redux-saga (generators with yield fork/join, channels and cancel) to manage async side effects in the Firefox debugger breakpoint refactor; reproduces a real bug where load_source_text runs twice and briefly flashes large files; thunk fixes by moving awaits but spreads coordination into reducers, while sagas solve it with a channel that serializes loads, fork/join to wait, and cancel on navigate, and thus prevents duplicate loads and race errors.

AI-written summary · about

  1. 0:00Start
  2. 0:58Debugger
  3. 8:23What Does It Mean To Have a Side Effect
  4. 13:19Sync Requests
  5. 15:02Refresher on Async in Javascript
  6. 18:13Problems Are with Using Promises
  7. 22:16Questions Generator
  8. 23:34Co-Routines of Java in Java Script Generators
  9. 26:15What Is a Simple Object
  10. 27:16Reducer
  11. 28:59Redux Sagas
  12. 30:17Scheduling
  13. 31:09Action Creator
  14. 36:52Solution with Thunks
  15. 38:54Blocking Methods
  16. 39:55Channels
  17. 40:56Load Source Text
  18. 43:38Observation
~/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.