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

Method _scheduleEffect

src/core/runtime/reactivity.js:330–338  ·  view source on GitHub ↗

* Add an effect to the pending set. * Schedules a microtask to run them if one isn't already scheduled. * @param {Effect} effect

(effect)

Source from the content-addressed store, hash-verified

328 * @param {Effect} effect
329 */
330 _scheduleEffect(effect) {
331 if (effect._isStopped) return;
332 this._pendingEffects.add(effect);
333 if (!this._isRunScheduled) {
334 this._isRunScheduled = true;
335 var self = this;
336 queueMicrotask(function () { self._runPendingEffects(); });
337 }
338 }
339
340 /**
341 * Set up the single global MutationObserver and delegated input/change

Callers 6

notifyGlobalSymbolMethod · 0.95
notifyElementSymbolMethod · 0.95
notifyPropertyMethod · 0.95
_handleDOMEventMethod · 0.95
_scheduleQueryEffectsMethod · 0.95

Calls 1

_runPendingEffectsMethod · 0.45

Tested by

no test coverage detected