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(compiler-core): fix directive wrong on DEV_ROOT_FRAGMENT #5903

Closed
wants to merge 1 commit into from

Conversation

iwusong
Copy link
Contributor

@iwusong iwusong commented May 12, 2022

#5523 2bab639

directive is compiled on fragment(dev_root_fragment), ChildRoot should get directive by instance vnode

@netlify
Copy link

netlify bot commented May 12, 2022

Deploy Preview for vue-sfc-playground ready!

Name Link
🔨 Latest commit ba466ed
🔍 Latest deploy log https://app.netlify.com/sites/vue-sfc-playground/deploys/627c8941a67250000840de9e
😎 Deploy Preview https://deploy-preview-5903--vue-sfc-playground.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented May 12, 2022

Deploy Preview for vuejs-coverage ready!

Name Link
🔨 Latest commit ba466ed
🔍 Latest deploy log https://app.netlify.com/sites/vuejs-coverage/deploys/627c8941d6e4950009a567fd
😎 Deploy Preview https://deploy-preview-5903--vuejs-coverage.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented May 12, 2022

Deploy Preview for vue-next-template-explorer ready!

Name Link
🔨 Latest commit ba466ed
🔍 Latest deploy log https://app.netlify.com/sites/vue-next-template-explorer/deploys/627c89418570c9000956b231
😎 Deploy Preview https://deploy-preview-5903--vue-next-template-explorer.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@yyx990803
Copy link
Member

Good catch - the actual reason is that the child component's root is a hoisted vnode and reused across renders, so directly mutating it causes more and more directives to be inherited. The proper fix is to clone it before mutations. See d36ca4d

@yyx990803 yyx990803 closed this May 12, 2022
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.

2 participants