From 274f81c5db83f0f77e1aba3240b2134a2474a72f Mon Sep 17 00:00:00 2001 From: Evan You Date: Fri, 6 Mar 2020 12:11:37 -0500 Subject: [PATCH] fix(reactivity): allow effect trigger inside no-track execution contexts fix #804 --- packages/reactivity/src/effect.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/reactivity/src/effect.ts b/packages/reactivity/src/effect.ts index 2368caf6..ae339be9 100644 --- a/packages/reactivity/src/effect.ts +++ b/packages/reactivity/src/effect.ts @@ -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 {