Vue · Senior · Question 21 of 75
What commonly causes hydration mismatches in Vue SSR?
- ✓Correct answer: Rendering values that differ on server and client (
Date.now(),Math.random(),windowchecks) or invalid HTML nesting - 2Using
refinstead ofreactive - 3Using scoped styles
Explanation
Move browser-only rendering to onMounted or <ClientOnly> (Nuxt). Vue 3.5 adds data-allow-mismatch to silence expected differences such as timestamps.