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): avoid traversing static children for vnodes w/ PatchFlags.BAIL #11115

Merged
merged 1 commit into from
Jun 14, 2024

Conversation

jh-leong
Copy link
Member

close #10547

Calling traverseStaticChildren on vnodes with PatchFlags.BAIL appears to cause unexpected behavior. In development mode, HMR requires traverseStaticChildren to ensure static vnode elements (el) are correctly updated. However, it seems that for vnodes that are fully diffed (PatchFlags.BAIL), this traversal may not be necessary and could lead to issues.

Change:

  • Added a check to skip traverseStaticChildren for vnodes with PatchFlags.BAIL.

@yyx990803 yyx990803 merged commit b557d3f into vuejs:main Jun 14, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot read properties of undefined (reading 'shapeFlag');Page rendering error
2 participants