Stop this effect and clean up all subscriptions.
()
| 149 | |
| 150 | /** Stop this effect and clean up all subscriptions. */ |
| 151 | stop() { |
| 152 | if (this._isStopped) return; |
| 153 | this._isStopped = true; |
| 154 | this._reactivity._unsubscribeEffect(this); |
| 155 | this._reactivity._cleanupOrphanedDeps(this.dependencies); |
| 156 | this._reactivity._pendingEffects.delete(this); |
| 157 | } |
| 158 | } |
| 159 | |
| 160 | export class Reactivity { |
no test coverage detected