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(hydration): refactor async component hydration #3563

Merged
merged 3 commits into from
May 7, 2021
Merged

fix(hydration): refactor async component hydration #3563

merged 3 commits into from
May 7, 2021

Conversation

HcySunYang
Copy link
Member

@HcySunYang HcySunYang commented Apr 8, 2021

Fix: #3560

The root cause of #3560 is that during hydration, we will wait for the async component to be resolved before creating a component instance for AsyncComponentWrapper. This is the opposite of the client rendering order, that is, create the instance for AsyncComponentWrapper first and then wait for the async component to be resolved. This PR makes hydration consistent with the behavior of normal client rendering

@HcySunYang HcySunYang added ❗ p4-important Priority 4: this fixes bugs that violate documented behavior, or significantly improves perf. need test The PR has missing test cases. and removed need test The PR has missing test cases. labels Apr 8, 2021
@yyx990803 yyx990803 merged commit c8d9683 into vuejs:master May 7, 2021
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot have v-if and Async component together
2 participants