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

Method notifyProperty

src/core/runtime/reactivity.js:312–323  ·  view source on GitHub ↗

* Notify that a property was written programmatically. * Schedules all effects watching properties on this object. * @param {Object} obj - DOM element or plain JS object

(obj)

Source from the content-addressed store, hash-verified

310 * @param {Object} obj - DOM element or plain JS object
311 */
312 notifyProperty(obj) {
313 if (obj == null || typeof obj !== "object" || obj._hsSkipTracking) return;
314 var state = this._objectState.get(obj);
315 if (state) {
316 var subs = this._propertySubscriptions.get(state.id);
317 if (subs) {
318 for (var effect of subs) {
319 this._scheduleEffect(effect);
320 }
321 }
322 }
323 }
324
325 /**
326 * Add an effect to the pending set.

Callers 2

setPropertyMethod · 0.45
notifyMutationMethod · 0.45

Calls 2

_scheduleEffectMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected