MCPcopy Create free account
hub / github.com/reactjs/react-rails / scheduleRoot

Function scheduleRoot

lib/assets/react-source/development/react.js:15326–15340  ·  view source on GitHub ↗
(root, element)

Source from the content-addressed store, hash-verified

15324 }
15325 };
15326 var scheduleRoot = function (root, element) {
15327 {
15328 if (root.context !== emptyContextObject) {
15329 // Super edge case: root has a legacy _renderSubtree context
15330 // but we don't know the parentComponent so we can't pass it.
15331 // Just ignore. We'll delete this with _renderSubtree code path later.
15332 return;
15333 }
15334
15335 flushPassiveEffects();
15336 syncUpdates(function () {
15337 updateContainer(element, root, null, null);
15338 });
15339 }
15340 };
15341
15342 function scheduleFibersWithFamiliesRecursively(fiber, updatedFamilies, staleFamilies) {
15343 {

Callers

nothing calls this directly

Calls 3

flushPassiveEffectsFunction · 0.85
syncUpdatesFunction · 0.85
updateContainerFunction · 0.85

Tested by

no test coverage detected