HMR in ViteNET.MVC example #47
Unanswered
martinmikulka
asked this question in
Q&A
Replies: 1 comment
-
Hey, I've been struggling with this as well. For me the key was to add this for React:
I'll be working on creating a PR that injects the react-preamble with an option to include this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, at the beginning, thanks for the effort you put into this great package.
While examining of the ViteNET.MVC example, I have noticed that the Hot Module Replacement (HMR) does not work. Or to be precise, it works, but in some weird way.
When the module is changed, a complete page reload occurs in the browser. The state of the counter is reset after the reload.
But it is expected, that HMR will reload only the changed module while retaining the counter's state.
I have been trying to figure it out, but no luck yet. So at least I am sharing this information, maybe some more experienced developer will make it working.
Thx.
Beta Was this translation helpful? Give feedback.
All reactions