mirror of
https://gitee.com/vuejs/vue.git
synced 2024-11-29 10:37:38 +08:00
fix(lifecycle): esnure component effect scopes are disconnected
close #13134
This commit is contained in:
parent
305e4ae9dc
commit
56ce7f8c57
@ -34,6 +34,9 @@ export function initMixin(Vue: typeof Component) {
|
||||
vm.__v_skip = true
|
||||
// effect scope
|
||||
vm._scope = new EffectScope(true /* detached */)
|
||||
// #13134 edge case where a child component is manually created during the
|
||||
// render of a parent component
|
||||
vm._scope.parent = undefined
|
||||
vm._scope._vm = true
|
||||
// merge options
|
||||
if (options && options._isComponent) {
|
||||
|
Loading…
Reference in New Issue
Block a user