Skip to content

Commit fe877b9

Browse files
committed
chore: move abort to last
1 parent 6d96fbe commit fe877b9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/reactivity/src/effectScope.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,6 @@ export class EffectScope implements ReactiveNode {
8282
if (!this.active) {
8383
return
8484
}
85-
if (this._controller) {
86-
this._controller.abort()
87-
}
8885
this.flags = EffectFlags.STOP
8986
let dep = this.deps
9087
while (dep !== undefined) {
@@ -101,6 +98,9 @@ export class EffectScope implements ReactiveNode {
10198
unlink(sub)
10299
}
103100
cleanup(this)
101+
if (this._controller) {
102+
this._controller.abort()
103+
}
104104
}
105105
}
106106

0 commit comments

Comments
 (0)