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
hmr will make the vue3's watchEffect reload #323
Labels
Comments
Start a new pull request in StackBlitz Codeflow. |
Hello @dang0705. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
If you use a variable like flag to control some function run or not in vue3's watchEffect, and trigger the hmr, then it'll make the flag reset in watchEffect, the control will not work any more to the function,and the watchEffect will run without any limitation, you have to refresh the browser to make it normal, How to handle this scnario
Reproduction
https://stackblitz.com/edit/vitejs-vite-fk5fbj?file=main.js&terminal=dev
Steps to reproduce
No response
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: