Change in component only gets reflected in last component (HMR) #134
Labels
bug: upstream
Bug in a dependency of this repository
feat: hmr
p3-minor-bug 🔨
An edge case that only affects very specific usage (priority)
Related plugins
plugin-vue
plugin-vue-jsx
Describe the bug
If you change something in a component and use it multiple times (v-for or just multiple components) only the last one gets updated. When you reload the site, all components are correctly updated. When you change something, there is a correct HMR update in the console.
Observation: If there is only one div (so no nested elements) it works.
Reproduction
https://stackblitz.com/edit/vitejs-vite-nvdtpq?file=src/components/TestCard.vue
Steps to reproduce
Change Text in TestCard.vue. Only the last TestCard component will be updated
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: