Skip to content

Commit 56ce7f8

Browse files
committed
fix(lifecycle): esnure component effect scopes are disconnected
close #13134
1 parent 305e4ae commit 56ce7f8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/core/instance/init.ts

+3
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ export function initMixin(Vue: typeof Component) {
3434
vm.__v_skip = true
3535
// effect scope
3636
vm._scope = new EffectScope(true /* detached */)
37+
// #13134 edge case where a child component is manually created during the
38+
// render of a parent component
39+
vm._scope.parent = undefined
3740
vm._scope._vm = true
3841
// merge options
3942
if (options && options._isComponent) {

0 commit comments

Comments
 (0)