HMR adds changes twice when using teleport #3302
Labels
🔨 p3-minor-bug
Priority 3: this fixes a bug, but is an edge case that only affects very specific usage.
🐞 bug
Something isn't working
Version
3.0.6
Reproduction link
https://github.com/martinszeltins/vue-hmr-teleport-duplicates
Steps to reproduce
https://github.com/martinszeltins/vue-hmr-teleport-duplicates
npm run dev
App.vue
and after<div>3</div>
add one more item<div>4</div>
<div>4</div>
twice!What is expected?
The expected result after adding a new item would be this:
What is actually happening?
Instead HMR has added 4 twice!
I'm using Vite 2.0.3 (latest)
The text was updated successfully, but these errors were encountered: