~/talk

The Psychological Effects of useEffect

Talkat React Summit 2020 · 2020-10-14..10-15· [react, javascript]
slides:none on file

Recording demonstrates concrete gotchas: migrating CodeSandbox to hooks spawns four months of PR reviews; useEffect dependency semantics means an empty array only works when values never change; refs don't trigger re-render so useRef is a mutable flag for mount checks; cleanup returned from useEffect runs after the effect finishes (not necessarily on component unmount), which leads to surprising loops when effects trigger DOM clicks. Demos use React, hooks, useRef, console.log and a live sandbox and mostly work while exposing these real failure modes.

AI-written summary · about

  1. 0:00Intro
  2. 5:09Sandbox
  3. 5:48UseEffect
  4. 7:53UseEffect Hack
  5. 11:13Mounting
  6. 14:18Revs
  7. 15:29UseRef
  8. 16:46Unmount
  9. 18:00Component Unmount
  10. 20:51Extreme
~/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.