refactor(effect): use includes instead of indexOf (#286)
This commit is contained in:
parent
1fbb4d22fa
commit
9a37c4b2c3
@ -88,7 +88,7 @@ function run(effect: ReactiveEffect, fn: Function, args: any[]): any {
|
||||
if (!effect.active) {
|
||||
return fn(...args)
|
||||
}
|
||||
if (activeReactiveEffectStack.indexOf(effect) === -1) {
|
||||
if (!activeReactiveEffectStack.includes(effect)) {
|
||||
cleanup(effect)
|
||||
try {
|
||||
activeReactiveEffectStack.push(effect)
|
||||
|
Loading…
x
Reference in New Issue
Block a user