~/talk

Vue.js Hydration Demystified

Talkat Frontend Nation 2024 · 2024-06-04..06-07· [vue]
slides:none on file

Covers why Vue hydration breaks and how to fix it: common causes are invalid HTML (browser rewrites DOM), build-step HTML minifiers removing Vue placeholder comments, and mismatched runtime state from random values; concrete fixes: validate HTML, disable auto HTML optimization, transfer server state with useState transfer with unique key, avoid importing client-only APIs (use onBeforeMount), enable Vue 3.4 hydration diagnostics or Nuxt compiler debug, and use partial/progressive hydration or Nuxt server components to avoid full hydration.

AI-written summary · about

  1. 0:00Intro
  2. 1:33What is Hydration
  3. 3:05How does Hydration fail
  4. 7:30How to avoid it
  5. 9:45Reversed Islands
  6. 10:30Recommendations
~/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.