Skip to content

Commit

Permalink
fix(reactivity): allow effect trigger inside no-track execution contexts
Browse files Browse the repository at this point in the history
fix #804
  • Loading branch information
yyx990803 committed Mar 6, 2020
1 parent d6bf9ff commit 274f81c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/reactivity/src/effect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 274f81c

Please sign in to comment.