]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(reactivity): allow effect trigger inside no-track execution contexts
authorEvan You <yyx990803@gmail.com>
Fri, 6 Mar 2020 17:11:37 +0000 (12:11 -0500)
committerEvan You <yyx990803@gmail.com>
Fri, 6 Mar 2020 17:11:37 +0000 (12:11 -0500)
fix #804

packages/reactivity/src/effect.ts

index 2368caf66bdcf1ffc2a7b9685d8cdf99880a4ae2..ae339be9d3d5abb0fa66d152a724b52dbc685a1b 100644 (file)
@@ -231,7 +231,7 @@ function addRunners(
 ) {
   if (effectsToAdd !== void 0) {
     effectsToAdd.forEach(effect => {
-      if (effect !== activeEffect) {
+      if (effect !== activeEffect || !shouldTrack) {
         if (effect.options.computed) {
           computedRunners.add(effect)
         } else {