Skip to content

Commit 9bda252

Browse files
chore: rollback
1 parent 5a279be commit 9bda252

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

packages/reactivity/src/effect.ts

+6-4
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,13 @@ export class ReactiveEffect<T = any> {
9898
}
9999

100100
resume(runOnResume = false) {
101-
this.isPaused = false
102-
if (runOnResume && this.isCalled) {
103-
this.run()
101+
if (this.isPaused) {
102+
this.isPaused = false
103+
if (runOnResume && this.isCalled) {
104+
this.run()
105+
}
106+
this.isCalled = false
104107
}
105-
this.isCalled = false
106108
}
107109

108110
run() {

0 commit comments

Comments
 (0)