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

Method add_source

packages/svelte/src/legacy/legacy-client.js:87–91  ·  view source on GitHub ↗
(key, value)

Source from the content-addressed store, hash-verified

85 * @param {unknown} value
86 */
87 var add_source = (key, value) => {
88 var s = mutable_source(value, false, false);
89 sources.set(key, s);
90 return s;
91 };
92
93 // Replicate coarse-grained props through a proxy that has a version source for
94 // each property, which is incremented on updates to the property itself. Do not

Callers

nothing calls this directly

Calls 2

mutable_sourceFunction · 0.90
setMethod · 0.65

Tested by

no test coverage detected