-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
webpack-dev-server Hello component msg update can not live update view #126
Comments
You can't. It's a limitation of hot reloading. It's even described in the source code of Hello.vue // note: changing this line won't causes changes
// with hot-reload because the reloaded component
// preserves its current state and we are modifying
// its initial state.
msg: 'Hello World' Because in components, initial state if defined as a function: |
This was referenced Mar 7, 2021
This was referenced Mar 7, 2021
This was referenced Sep 23, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, everything works perfectly when first setup vue webpack developement environment.
I open the http://localhost:8080 to check the live update when updating source code.
How can I fix it?
thanks~
The text was updated successfully, but these errors were encountered: