-
-
Couldn't load subscription status.
- Fork 33.8k
🐛 v-html Breaks SSR on Page Refresh - Hydration Mismatch #13279
Unanswered
Zisan-uzum
asked this question in
Q&A
-
Using v-html in Nuxt components causes hydration mismatches that break pages when refreshed. The issue occurs because:
Server-Side: Nuxt renders static HTML during SSR
Client-Side: Vue processes v-html and potentially changes DOM structure
Mismatch: Vue detects differences and discards server HTML, causing content to break
- Defeats SSR purpose, bad for SEO
- Is there a native Vue/Nuxt solution for safe HTML rendering in SSR?
- Should v-html behavior be consistent between server and client?
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 2 comments
-
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
-
I had the same issue a few weeks ago and actually stopped working on that for a while. I’ll follow this discussion to see any updates or insights.
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment