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): check the DEV_ROOT_FRAGMENT flag correctly in the dev environment #2750

Merged
merged 1 commit into from
Feb 5, 2021
Merged

fix(runtime-core): check the DEV_ROOT_FRAGMENT flag correctly in the dev environment #2750

merged 1 commit into from
Feb 5, 2021

Conversation

HcySunYang
Copy link
Member

@HcySunYang HcySunYang commented Dec 7, 2020

close: #2741 , #3133
According to #2741 , I think he should not use renderSlot directly, but the cause of the problem lies in:

result.patchFlag & PatchFlags.DEV_ROOT_FRAGMENT

When result.patchFlag is negative(e.g. -2 BAIL), this condition is always true.

@LinusBorg LinusBorg added the ❗ p4-important Priority 4: this fixes bugs that violate documented behavior, or significantly improves perf. label Dec 26, 2020
Copy link
Member

@afontcu afontcu left a comment

Choose a reason for hiding this comment

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

This also fixes a broken test in Vue Test Utils next when trying to upgrade to 3.0.4 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❗ p4-important Priority 4: this fixes bugs that violate documented behavior, or significantly improves perf. ready to merge The PR is ready to be merged.
Projects
None yet
3 participants