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(compat): correctly merge lifecycle hooks when using Vue.extend (fix #3761) #3762

Merged
merged 3 commits into from
May 12, 2021

Conversation

CyberAP
Copy link
Contributor

@CyberAP CyberAP commented May 11, 2021

Note: this fix does introduce some performance overhead to the hot-path, I've tried to negate it with a __VUE_COMPAT__ check in runLifecycleHook.

Closes #3761

@CyberAP CyberAP force-pushed the fix-vue-compat-extend-lifecycle-hooks branch from e604ca7 to b8bf9a1 Compare May 11, 2021 20:56
@CyberAP CyberAP changed the title fix(compat): correctly merge lifecycle hooks when using Vue.extend draft: fix(compat): correctly merge lifecycle hooks when using Vue.extend May 11, 2021
@CyberAP CyberAP changed the title draft: fix(compat): correctly merge lifecycle hooks when using Vue.extend Draft: fix (compat): correctly merge lifecycle hooks when using Vue.extend, fix #3761 May 11, 2021
@CyberAP CyberAP force-pushed the fix-vue-compat-extend-lifecycle-hooks branch 2 times, most recently from 96f2522 to 79e5c6e Compare May 11, 2021 21:45
@CyberAP CyberAP changed the title Draft: fix (compat): correctly merge lifecycle hooks when using Vue.extend, fix #3761 fix (compat): correctly merge lifecycle hooks when using Vue.extend, fix #3761 May 11, 2021
@CyberAP CyberAP force-pushed the fix-vue-compat-extend-lifecycle-hooks branch from 79e5c6e to 9be82af Compare May 11, 2021 21:52
@CyberAP CyberAP force-pushed the fix-vue-compat-extend-lifecycle-hooks branch from 9be82af to e52193d Compare May 11, 2021 21:56
@CyberAP CyberAP changed the title fix (compat): correctly merge lifecycle hooks when using Vue.extend, fix #3761 fix(compat): correctly merge lifecycle hooks when using Vue.extend, fix #3761 May 11, 2021
@CyberAP CyberAP changed the title fix(compat): correctly merge lifecycle hooks when using Vue.extend, fix #3761 fix(compat): correctly merge lifecycle hooks when using Vue.extend (fix #3761) May 11, 2021
@yyx990803 yyx990803 merged commit 2bfb8b5 into vuejs:master May 12, 2021
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.

[compat] Lifecycle hooks are broken when using Vue.extend
2 participants