Environment
- Operating System: Linux
- Node Version: v16.20.0
- Nuxt Version: 3.6.5
- Nitro Version: 2.6.0
- Package Manager: npm@9.4.2
- Builder: vite
- User Config: -
- Runtime Modules: -
- Build Modules: -
Reproduction
https://stackblitz.com/edit/nuxt-starter-ycgj3t?file=app.vue
Describe the bug
Using v-html on a prerendered site will result in the html not getting updated after hydration.
Here is the example used in the stackblitz:
<script setup>
const timestamp = ref();
timestamp.value = Date.now();
</script>
<template>
<div>
<div v-html="timestamp" />
{{ timestamp }}
</div>
</template>
After loading the prerendered site, the timestamp in the v-html ist not getting updated, but stays with the value it was prerendered with. I would expect that div to update to the current timestamp on every pageload.
Additional context
No response
Logs
No response
Environment
Reproduction
https://stackblitz.com/edit/nuxt-starter-ycgj3t?file=app.vue
Describe the bug
Using
v-htmlon a prerendered site will result in the html not getting updated after hydration.Here is the example used in the stackblitz:
After loading the prerendered site, the timestamp in the
v-htmlist not getting updated, but stays with the value it was prerendered with. I would expect that div to update to the current timestamp on every pageload.Additional context
No response
Logs
No response