fix(reactivity): effect should still check sync self-trigger
This commit is contained in:
parent
611437a3fe
commit
ac81dcf0cc
@ -178,7 +178,11 @@ export function trigger(
|
||||
const effects = new Set<ReactiveEffect>()
|
||||
const add = (effectsToAdd: Set<ReactiveEffect> | undefined) => {
|
||||
if (effectsToAdd) {
|
||||
effectsToAdd.forEach(effect => effects.add(effect))
|
||||
effectsToAdd.forEach(effect => {
|
||||
if (effect !== activeEffect) {
|
||||
effects.add(effect)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user