Open wxs77577 opened 1 year ago
I wasn't able to reproduce. Would you write a more detailed steps?
I wasn't able to reproduce. Would you write a more detailed steps?
The problem is when I change the jsx template of Test
component and save the App.tsx
, the msg
in the default component has been reseted.
I've made some changes in App.tsx
:
https://stackblitz.com/edit/vitejs-vite-uda5gz?file=src%2FApp.tsx,src%2Fstyle.css,src%2Fmain.ts
I see.
To achieve that, we somehow need to skip calling __VUE_HMR_RUNTIME__.reload
for the default component. I'm not sure how we can do that though.
it should call __VUE_HMR_RUNTIME__.rerender
instead of reload
.
Related plugins
[ ] plugin-vue
[X] plugin-vue-jsx
Describe the bug
Reproduction
https://stackblitz.com/edit/vitejs-vite-uda5gz?file=src/main.ts
Steps to reproduce
No response
System Info
Used Package Manager
npm
Logs
No response
Validations