~/talk

Async Redux Actions With RxJS

Talkat React Rally 2016 · 2016-08-25..08-26· [react, frontend-architecture]
name:Ben Lesh
github:benlesh
slides:none on file

Shows how redux-observable middleware wires RxJS observables into Redux as “epics” that take streams of actions and return action streams, using switchMap for implicit XHR cancellation and takeUntil for declarative aborts. Demonstrates debounce-on-type autocomplete, client-side rate limiting of clicks, and multiplexed WebSocket subscription with reconnect and reference counting. Claims much less imperative glue, works with Redux tooling, but notes a learning curve—RxJS has “60+ operators” though about eight to twelve cover most cases.

AI-written summary · about

  1. 0:00Intro
  2. 0:13REACT RALLY
  3. 2:02What's a reducer?
  4. 2:27Reducers in Redux
  5. 7:44Callbacks
  6. 8:14Callback Hell (aka "the flying V")
  7. 8:34Promises provide a cleaner solution
  8. 9:50Why cancellation is important
  9. 14:34Times are changing
  10. 17:41Subscribing to an observable
  11. 22:08Async in redux without middleware
  12. 22:48Async in redux with middleware (and react-redux)
  13. 23:47Let's combine RxJS and redux!
  14. 24:43What's an "Epic"?
  15. 25:38Basic middleware setup
  16. 26:45Idiomatic redux increment decrement with added debounce
  17. 28:24Auto-Complete Plain JS
  18. 29:53Multiplexed Socket Plain JS
  19. 31:15Multiplexed Socket Epic
  20. 31:51The Good
  21. 34:49Co-Author Jay Phelps
~/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.