MCPcopy
hub / github.com/sveltejs/kit / set

Method set

packages/kit/src/runtime/client/remote-functions/query.svelte.js:194–200  ·  view source on GitHub ↗

* @param {T} value

(value)

Source from the content-addressed store, hash-verified

192 * @param {T} value
193 */
194 set(value) {
195 this.#ready = true;
196 this.#loading = false;
197 this.#error = undefined;
198 this.#raw = value;
199 this.#promise = Promise.resolve();
200 }
201
202 /**
203 * @param {(old: T) => T} fn

Callers 15

adaptFunction · 0.80
create_function_bundleFunction · 0.80
update_elementFunction · 0.80
hooks.server.jsFile · 0.80
+page.server.jsFile · 0.80
GETFunction · 0.80
loadFunction · 0.80
GETFunction · 0.80
GETFunction · 0.80
+page.server.tsFile · 0.80
loadFunction · 0.80
loadFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected