Closed iamrgroot closed 2 years ago
Redirected from https://github.com/vitejs/vite/issues/8027 to here.
When using global state, in my example just Vue refs with import/export, hot reloading the state and then a component using that state results in multiple decoupled states that result in outdated HTML.
https://github.com/IAmRGroot/reproduction-vite
compositions/ip.ts
components/Wrapper.vue
Following the same steps in Vue3 (see the branch https://github.com/IAmRGroot/reproduction-vite/tree/vue3) results in correct behaviour.
Fixed in Vue 2.7 👍
Redirected from https://github.com/vitejs/vite/issues/8027 to here.
When using global state, in my example just Vue refs with import/export, hot reloading the state and then a component using that state results in multiple decoupled states that result in outdated HTML.
Reproduction
https://github.com/IAmRGroot/reproduction-vite
compositions/ip.ts
, causing a HMRcomponents/Wrapper.vue
causing a HMRFollowing the same steps in Vue3 (see the branch https://github.com/IAmRGroot/reproduction-vite/tree/vue3) results in correct behaviour.