MCPcopy Index your code
hub / github.com/bigskysoftware/_hyperscript / stop

Method stop

src/core/runtime/reactivity.js:151–157  ·  view source on GitHub ↗

Stop this effect and clean up all subscriptions.

()

Source from the content-addressed store, hash-verified

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
160export class Reactivity {

Callers 8

createEffectMethod · 0.95
createEffectMethod · 0.95
createEffectMethod · 0.95
createEffectMethod · 0.95
createEffectMethod · 0.95
createEffectMethod · 0.95
_runPendingEffectsMethod · 0.45
stopElementEffectsMethod · 0.45

Calls 3

_unsubscribeEffectMethod · 0.45
_cleanupOrphanedDepsMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected