N
Nuxt2y ago
Eric

v-html not loading content

hi! I import content from a rich text editor in Directus and inject it through v-html in my web page. But, the content doesn't load when the page is loaded (SSR) <di :v-html="item.content"> </div> If I make any type of change in the code and save it, the page is updated, the v-html wakes up and the content gets injected properly. If I reload the page in the browser, the problem comes back. I suppose I'm just missing something, but I can't figure out what it is. Any of you know how to make this work? thanks! eric
2 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Eric
EricOP2y ago
thanks for your answer! I have warnings about "Hydration children mismatch". I'm now hunting problems highlighted by the w3 html validator. These html problems could be the reason why v-html wont work properly? Well, I think the problem is solved. I corrected a bunch of html problems and the v-html now works just fine. Thanks for the head's up!
Want results from more Discord servers?
Add your server