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

Function update

packages/svelte/src/store/shared/index.js:69–71  ·  view source on GitHub ↗

* @param {Updater } fn * @returns {void}

(fn)

Source from the content-addressed store, hash-verified

67 * @returns {void}
68 */
69 function update(fn) {
70 set(fn(/** @type {T} */ (value)));
71 }
72
73 /**
74 * @param {Subscriber<T>} run

Callers 3

index.jsFile · 0.50
fromActionFunction · 0.50
fromStoreFunction · 0.50

Calls 2

setFunction · 0.70
fnFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…