]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(runtime-core): component effect scopes should be detached
authorEvan You <yyx990803@gmail.com>
Thu, 29 Jul 2021 21:15:56 +0000 (17:15 -0400)
committerEvan You <yyx990803@gmail.com>
Thu, 29 Jul 2021 21:15:56 +0000 (17:15 -0400)
packages/runtime-core/src/component.ts

index ea682c1f34df614ba5f00c912c3aa9c3fddef948..808ad3440568d433d048108b829f6a3d45764193 100644 (file)
@@ -456,7 +456,7 @@ export function createComponentInstance(
     next: null,
     subTree: null!, // will be set synchronously right after creation
     update: null!, // will be set synchronously right after creation
-    scope: new EffectScope(),
+    scope: new EffectScope(true /* detached */),
     render: null,
     proxy: null,
     exposed: null,