Skip to content

Commit

Permalink
fix(reactivity): revert ac81dcf
Browse files Browse the repository at this point in the history
fix #2043
  • Loading branch information
yyx990803 committed Sep 4, 2020
1 parent fa7ab0a commit 5f40539
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/reactivity/src/effect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,7 @@ export function trigger(
const effects = new Set<ReactiveEffect>()
const add = (effectsToAdd: Set<ReactiveEffect> | undefined) => {
if (effectsToAdd) {
effectsToAdd.forEach(effect => {
if (effect !== activeEffect) {
effects.add(effect)
}
})
effectsToAdd.forEach(effect => effects.add(effect))
}
}

Expand Down

0 comments on commit 5f40539

Please sign in to comment.