Skip to content

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
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