teleport + HMR + async ref mutation breaks on component edit
Version
3.0.11
Reproduction link
https://github.com/zigomir/teleport-hmr-repro
Steps to reproduce
I tried putting reproduction on to codesandbox, but HMR wouldn't work there anyway, so it's better to do locally.
git clone git@github.com:zigomir/teleport-hmr-repro.git
yarn
ornpm install
yarn dev
ornpm run dev
- open http://localhost:3000 and open browser dev tools
- see how random number is refreshing every second
- edit
App.vue
and see error in console & random error not re-rendering anymore, aka app breaks - if you comment out
teleport
tag and reload page, HMR works and random number updates as expected
Might be related to #3560 but not sure.
What is expected?
HMR and app keep working.
What is actually happening?
It breaks.