Просмотр исходного кода

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

Evan You 4 лет назад
Родитель
Сommit
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,
     next: null,
     subTree: null!, // will be set synchronously right after creation
     subTree: null!, // will be set synchronously right after creation
     update: 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,
     render: null,
     proxy: null,
     proxy: null,
     exposed: null,
     exposed: null,