~/talk

Redux Saga, the Viking way to manage side effects

Talkat React Alicante 2017 · 2017-09-28..09-30· [react, reactive-programming]
slides:none on file

Claims that Redux-Saga isolates and orchestrates complex side effects by combining ES6 generators with promises and a library of declarative effects, not just another async pattern. Shows concrete tools—takeEvery, takeLatest cancellation, fork/spawn, channels and eventChannel for WebSockets—and a running example wiring an online chess game: sound manager, WebSocket event handling, task cancellation and buffering. Works for complex orchestration; recommends Redux‑Thunk for simple API calls and learning generators first.

AI-written summary · about

  1. 0:00Start
  2. 4:20What we need
  3. 5:56Redux-thunk
  4. 8:39Originally in C.S.
  5. 10:05But nowadays
  6. 11:11First generator
  7. 13:13Passing values to generators
  8. 14:52Similar, in a loop
  9. 15:17With async code + promises
  10. 17:42Setup
  11. 18:31Simple problem: How to play a sound?
  12. 19:17Naive solution
  13. 21:44Using sagas
  14. 22:39Example: Play sound (call)
  15. 23:06Declarative effects
  16. 24:04Example: Play sound (takeEvery)
  17. 24:25Dispatching (put)
  18. 24:44Ajax example
  19. 25:32takeLatest
  20. 26:26Non-blocking (fork)
  21. 27:05Cancellation (cancel)
  22. 28:08Non-blocking detached (spawn)
  23. 29:17Parallel (all)
  24. 29:29Races (race)
  25. 30:17Watch and fork pattern
  26. 30:53Sequentially, using channels
  27. 31:16Connect + listen from socket
  28. 31:46Obtaining the state (select)
  29. 32:23Summary
  30. 32:52Takeaways
~/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.