MCPcopy
hub / github.com/sveltejs/svelte / discard

Method discard

packages/svelte/src/internal/client/reactivity/batch.js:633–643  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

631 }
632
633 discard() {
634 for (const fn of this.#discard_callbacks) fn(this);
635 this.#discard_callbacks.clear();
636
637 for (const deferred of this.async_deriveds.values()) {
638 deferred.reject(OBSOLETE);
639 }
640
641 this.#unlink();
642 this.#deferred?.resolve();
643 }
644
645 /**
646 * @param {Effect} effect

Callers 1

#processMethod · 0.95

Calls 4

#unlinkMethod · 0.95
fnFunction · 0.70
clearMethod · 0.45
valuesMethod · 0.45

Tested by

no test coverage detected