MCPcopy Create free account
hub / github.com/bigskysoftware/_hyperscript / trackGlobalSymbol

Method trackGlobalSymbol

src/core/runtime/reactivity.js:222–225  ·  view source on GitHub ↗

* Track a global variable read as a dependency. * @param {string} name - Variable name

(name)

Source from the content-addressed store, hash-verified

220 * @param {string} name - Variable name
221 */
222 trackGlobalSymbol(name) {
223 this._currentEffect.dependencies.set("symbol:global:" + name,
224 { type: "symbol", name: name, scope: "global" });
225 }
226
227 /**
228 * Track an element-scoped variable read as a dependency.

Callers 1

resolveSymbolMethod · 0.45

Calls 1

setMethod · 0.45

Tested by

no test coverage detected