Home / Function/ onScheduleRoot() — react Function Reference

onScheduleRoot() — react Function Reference

Architecture documentation for the onScheduleRoot() function in ReactFiberDevToolsHook.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  a2355356_36ea_ecb4_17dd_870ed5e1b68c["onScheduleRoot()"]
  1f955e30_ff03_d9f9_d498_58b7dc7858dc["ReactFiberDevToolsHook.js"]
  a2355356_36ea_ecb4_17dd_870ed5e1b68c -->|defined in| 1f955e30_ff03_d9f9_d498_58b7dc7858dc
  style a2355356_36ea_ecb4_17dd_870ed5e1b68c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-reconciler/src/ReactFiberDevToolsHook.js lines 93–109

export function onScheduleRoot(root: FiberRoot, children: ReactNodeList) {
  if (__DEV__) {
    if (
      injectedHook &&
      typeof injectedHook.onScheduleFiberRoot === 'function'
    ) {
      try {
        injectedHook.onScheduleFiberRoot(rendererID, root, children);
      } catch (err) {
        if (__DEV__ && !hasLoggedError) {
          hasLoggedError = true;
          console.error('React instrumentation encountered an error: %o', err);
        }
      }
    }
  }
}

Domain

Subdomains

Frequently Asked Questions

What does onScheduleRoot() do?
onScheduleRoot() is a function in the react codebase, defined in packages/react-reconciler/src/ReactFiberDevToolsHook.js.
Where is onScheduleRoot() defined?
onScheduleRoot() is defined in packages/react-reconciler/src/ReactFiberDevToolsHook.js at line 93.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free