ScheduleRoot() — react Function Reference
Architecture documentation for the ScheduleRoot() function in ReactFiberHotReloading.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 688fddc1_edca_3611_095f_cc03b3309359["ScheduleRoot()"] da68ece0_17b1_3c98_d393_5c830eacd9b2["ReactFiberHotReloading.js"] 688fddc1_edca_3611_095f_cc03b3309359 -->|defined in| da68ece0_17b1_3c98_d393_5c830eacd9b2 style 688fddc1_edca_3611_095f_cc03b3309359 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-reconciler/src/ReactFiberHotReloading.js lines 242–256
export const scheduleRoot: ScheduleRoot = (
root: FiberRoot,
element: ReactNodeList,
): void => {
if (__DEV__) {
if (root.context !== emptyContextObject) {
// Super edge case: root has a legacy _renderSubtree context
// but we don't know the parentComponent so we can't pass it.
// Just ignore. We'll delete this with _renderSubtree code path later.
return;
}
updateContainerSync(element, root, null, null);
flushSyncWork();
}
};
Domain
Subdomains
Source
Frequently Asked Questions
What does ScheduleRoot() do?
ScheduleRoot() is a function in the react codebase, defined in packages/react-reconciler/src/ReactFiberHotReloading.js.
Where is ScheduleRoot() defined?
ScheduleRoot() is defined in packages/react-reconciler/src/ReactFiberHotReloading.js at line 242.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free