HMR will full reload in snowpack-vue #1580
Replies: 2 comments
-
I think the document indicates that in a very subtle way by saying: Vue (HMR only), implying Fast refresh is not supported for Vue (only full reloads). That's a huge drawback and I don't see why I'd want to develop a Vue app with Snowpack instead of, say, Vite. Could you reuse Vite Vue plugin HMR logic? With its approach to build, I think Snowpack has an interesting edge for large apps but HMR is key to dev. |
Beta Was this translation helpful? Give feedback.
-
I am looking into Snowpack vs Vite and I too was curious about the "Vue (HMR only)" info present in the Snowpack doc, especially after reading the comments from Evan You here where he mentions Snowpack "blowing away component state". |
Beta Was this translation helpful? Give feedback.
-
When i use snowpack-react-typescript, it only reload my change
watch the checkbox, the checkbox still checked
But i use snowpack-vue, it reload the other dom
the checkobx is reloaded
I also test the HMR in vitejs, it work well,just like snowpack-react-typescript
Beta Was this translation helpful? Give feedback.
All reactions