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

Method stop

www/js/_hyperscript.js:3049–3055  ·  view source on GitHub ↗

Stop this effect and clean up all subscriptions.

()

Source from the content-addressed store, hash-verified

3047 }
3048 /** Stop this effect and clean up all subscriptions. */
3049 stop() {
3050 if (this._isStopped) return;
3051 this._isStopped = true;
3052 this._reactivity._unsubscribeEffect(this);
3053 this._reactivity._cleanupOrphanedDeps(this.dependencies);
3054 this._reactivity._pendingEffects.delete(this);
3055 }
3056 };
3057 var Reactivity = class {
3058 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