MCPcopy Create free account
hub / github.com/bigskysoftware/_hyperscript / stop

Method stop

www/js/_hyperscript.esm.js:3047–3053  ·  view source on GitHub ↗

Stop this effect and clean up all subscriptions.

()

Source from the content-addressed store, hash-verified

3045 }
3046 /** Stop this effect and clean up all subscriptions. */
3047 stop() {
3048 if (this._isStopped) return;
3049 this._isStopped = true;
3050 this._reactivity._unsubscribeEffect(this);
3051 this._reactivity._cleanupOrphanedDeps(this.dependencies);
3052 this._reactivity._pendingEffects.delete(this);
3053 }
3054};
3055var Reactivity = class {
3056 constructor() {

Callers 2

_runPendingEffectsMethod · 0.45
stopElementEffectsMethod · 0.45

Calls 3

_unsubscribeEffectMethod · 0.45
_cleanupOrphanedDepsMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected