()
| 192 | } |
| 193 | |
| 194 | stop(): void { |
| 195 | if (this.flags & EffectFlags.ACTIVE) { |
| 196 | for (let link = this.deps; link; link = link.nextDep) { |
| 197 | removeSub(link) |
| 198 | } |
| 199 | this.deps = this.depsTail = undefined |
| 200 | cleanupEffect(this) |
| 201 | this.onStop && this.onStop() |
| 202 | this.flags &= ~EffectFlags.ACTIVE |
| 203 | } |
| 204 | } |
| 205 | |
| 206 | trigger(): void { |
| 207 | if (this.flags & EffectFlags.PAUSED) { |