~/talk

Vue.js Hydration Demystified

Talkat VueConf US 2024 · 2024-05-15..05-17· [vue, web-performance]
slides:none on file

Explains why hydration fails (invalid HTML, optimizer scripts stripping Vue comments, differing server/client state from Math.random, Date, localStorage or import.meta.client) and how to fix and debug it: enable Vue 3.4 hydration mismatch details in staging, run an HTML validator, use useState to serialize server values, delay client-only initialization into onMounted, and log mismatches. Covers partial/island hydration, Nuxt server components as server-rendered reactive islands, lazy hydration with replay-on-click, and upcoming useId and mismatch hooks.

AI-written summary · about

  1. 0:00Vue.js Hydration Demystified
  2. 12:44Can we avoid hydration?
  3. 14:32Partial Hydration
  4. 15:47When to Hydrate
  5. 18:44Nuxt Server Components
  6. 21:42What's next?
~/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.