🐛 BUG: HMR with vue components causes a hydration mismatch error #3559
Labels
- P4: important
Violate documented behavior or significantly impacts performance (priority)
feat: hmr
Related to HMR (scope)
What version of
astro
are you using?1.0.0-beta.42
Are you using an SSR adapter? If so, which one?
none
What package manager are you using?
pnpm
What operating system are you using?
Mac
Describe the Bug
When editing a vue component in
dev
, the page flashes with the new content then reverts back after vue hits the following errorIt looks like vue core has a few recent changes that are related to hydration and HMR that may be related to this regression
Reproduction
To reproduce, clone the latest
framework-vue
starter and change any of the rendered HTML - the brower flashes with the update then revertsAccording to Vue's docs, any updates to the
<template>
or<style>
should be hot reloaded without losing the component state, any changes to the<script>
should refresh the component back to it's default state in case any lifecycle hooks had side effectsLink to Minimal Reproducible Example
https://stackblitz.com/github/withastro/astro/tree/latest/examples/framework-vue?file=package.json&on=stackblitz
Participation
The text was updated successfully, but these errors were encountered: