MCPcopy
hub / github.com/sveltejs/svelte / #source

Method #source

packages/svelte/src/reactivity/map.js:91–93  ·  view source on GitHub ↗

* If the source is being created inside the same reaction as the SvelteMap instance, * we use `state` so that it will not be a dependency of the reaction. Otherwise we * use `source` so it will be. * * @template T * @param {T} value * @returns {Source }

(value)

Source from the content-addressed store, hash-verified

89 * @returns {Source<T>}
90 */
91 #source(value) {
92 return update_version === this.#update_version ? state(value) : source(value);
93 }
94
95 /** @param {K} key */
96 has(key) {

Callers 4

hasMethod · 0.95
getMethod · 0.95
setMethod · 0.95
#read_allMethod · 0.95

Calls 2

stateFunction · 0.90
sourceFunction · 0.90

Tested by

no test coverage detected