fix(reactivity): allow effect trigger inside no-track execution contexts

fix #804
This commit is contained in:
Evan You 2020-03-06 12:11:37 -05:00
parent d6bf9ffdc6
commit 274f81c5db

View 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 {