perf(reactivity): optimize effect run condition
This commit is contained in:
@@ -75,7 +75,7 @@ export class ReactiveEffect<T = any> {
|
||||
if (!this.active) {
|
||||
return this.fn()
|
||||
}
|
||||
if (!effectStack.includes(this)) {
|
||||
if (!effectStack.length || !effectStack.includes(this)) {
|
||||
try {
|
||||
effectStack.push((activeEffect = this))
|
||||
enableTracking()
|
||||
|
||||
Reference in New Issue
Block a user