You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change the console.log value in created of src/App.vue
Check the console output
Remove the app.mixin({}) in src/main.js
Check the console output
Change the console.log value in created of src/App.vue
Check the console output
What is expected?
HMR will work and the console log output could be auto updated
What is actually happening?
With the mixin called, the HMR stops and the console log is not auto updated
I found this issue in vue-i18n that reports HMR stops. After some investigation, I found this problem was caused by call of mixin in vue, and it's introduced in version 3.1.0-beta.7.
The resolved was assigned with a new object and was mixined with globalMixins and base. Therefore the change of base will not influence the actual working var resolved.
I fixed this with simply some simple code change :
Version
3.2.0-beta.4
Reproduction link
https://github.com/PeterAlfredLee/vue3_hmr_stop
Steps to reproduce
console.log
value increated
ofsrc/App.vue
app.mixin({})
insrc/main.js
console.log
value increated
ofsrc/App.vue
What is expected?
HMR will work and the console log output could be auto updated
What is actually happening?
With the mixin called, the HMR stops and the console log is not auto updated
I found this issue in vue-i18n that reports HMR stops. After some investigation, I found this problem was caused by call of mixin in vue, and it's introduced in version
3.1.0-beta.7
.I think the problem is caused by this :
The
resolved
was assigned with a new object and was mixined withglobalMixins
andbase
. Therefore the change ofbase
will not influence the actual working varresolved
.I fixed this with simply some simple code change :
Hope this helps.
The text was updated successfully, but these errors were encountered: