~/talk

You Can’t Use Hooks Conditionally… or Can You?

watch on portal.gitnation.org ↗https://portal.gitnation.org/contents/you-cant-use-hooks-conditionally-or-can-you
Talkat React Summit 2023 · on Friday, 2023-06-02· at 12:20· [react]

Explains why the Hooks rule “only call hooks at the top level” doesn’t uniformly apply, showing that useContext can be used conditionally. Compares useContext with other hooks by building a mental model of React’s runtime tracking of props, state, refs and context values to explain how React manages rendering and data association.

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.