Skip to content

Commit

Permalink
fix(lifecycle): esnure component effect scopes are disconnected
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Dec 24, 2023
1 parent 305e4ae commit 56ce7f8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/instance/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 56ce7f8

Please sign in to comment.