~/talk

What Refs Can Do for You

Talkat React Summit US 2024 · on Tuesday, 2024-11-19· at 15:35· [react, web-performance]

Profiling with React DevTools and Chrome shows a concrete win: replacing state-driven style updates that cause 254 renders during column resize with manual DOM updates via a ref callback or a synchronized effect removes those renders and fixes janky resizing. The team prototypes using useLayoutEffect vs ref callback to set left styles, measures render stacks, and verifies smooth behavior in AG grid. React 19 changes ref callback cleanup semantics and strict‑mode timing so adjust the cleanup and callback memoization accordingly.

AI-written summary · about

  1. 0:00Introduction to Refs and Profiling Agigrid
  2. 2:46Optimizing Custom Cell Components and Performance
  3. 5:28Improving Performance with Manual Style Updates
  4. 8:34Refactoring the Use of useEffect
  5. 10:24Improving Performance with Ref Callback
  6. 13:49React 19 and Using Ref Callbacks
~/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.