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

Function scheduleRefresh

lib/assets/react-source/development/react.js:15311–15325  ·  view source on GitHub ↗
(root, update)

Source from the content-addressed store, hash-verified

15309 }
15310 }
15311 var scheduleRefresh = function (root, update) {
15312 {
15313 if (resolveFamily === null) {
15314 // Hot reloading is disabled.
15315 return;
15316 }
15317
15318 var staleFamilies = update.staleFamilies,
15319 updatedFamilies = update.updatedFamilies;
15320 flushPassiveEffects();
15321 flushSync(function () {
15322 scheduleFibersWithFamiliesRecursively(root.current, updatedFamilies, staleFamilies);
15323 });
15324 }
15325 };
15326 var scheduleRoot = function (root, element) {
15327 {
15328 if (root.context !== emptyContextObject) {

Callers

nothing calls this directly

Calls 3

flushPassiveEffectsFunction · 0.85
flushSyncFunction · 0.85

Tested by

no test coverage detected