Vue · Senior · Question 21 of 75

What commonly causes hydration mismatches in Vue SSR?

Explanation

Move browser-only rendering to onMounted or <ClientOnly> (Nuxt). Vue 3.5 adds data-allow-mismatch to silence expected differences such as timestamps.

Further reading

Problem with a question

Vue · Senior · question 21

Test yourself

Take the Vue · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz