Skip to content
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

fix(runtime-core): during the hmr reload process, instance.update should not allow recursing (fix #7908) #8161

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Jevon617
Copy link

@Jevon617 Jevon617 commented Apr 26, 2023

Close: #7908.

During the hmr reload process, in some cases (such as "ref + v-for"), instance.update will be triggered twice.

* During the hmr reload process, in some cases (such as "ref + v-for"),
* instance.update will be triggered twice.
*/
const isHmrReload = hmrDirtyComponents.has(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All HMR related code should be inside __DEV__ branches for treeshaking.

@edison1105
Copy link
Member

#7908 can no longer be reproduced using the latest version of Vue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Needs Review
Development

Successfully merging this pull request may close these issues.

[bug] Lifecycle hooks has been called twice in HMR when I use "v-for + ref" and "script setup" in RouterView.
3 participants