~/talk

Redux Connect vs Redux Hooks: A play

Talkat ReactConf AU 2020 · 2020-02-27..02-28· [react, frontend-architecture]
slides:none on file

Claims that Redux Hooks can replace connect but only if developers manage rerenders explicitly, demonstrated using useSelector with shallowEqual and a custom comparator to avoid spurious updates when object references change, and using useCallback for dispatch handlers plus memo on children to keep stable function and prop identities. Shows that useDispatch just returns dispatch and will recreate inline handlers unless memoized, and that with these tools behavior matches connect at the cost of more manual optimization.

AI-written summary · about

~/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.