瀏覽代碼

fix(runtime-core): component effect scopes should be detached

Evan You 4 年之前
父節點
當前提交
6aa871e565
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/runtime-core/src/component.ts

+ 1 - 1
packages/runtime-core/src/component.ts

@@ -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,