Home / Function/ markComponentErrored() — react Function Reference

markComponentErrored() — react Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

packages/react-reconciler/src/ReactFiberDevToolsHook.js lines 357–370

export function markComponentErrored(
  fiber: Fiber,
  thrownValue: mixed,
  lanes: Lanes,
): void {
  if (enableSchedulingProfiler) {
    if (
      injectedProfilingHooks !== null &&
      typeof injectedProfilingHooks.markComponentErrored === 'function'
    ) {
      injectedProfilingHooks.markComponentErrored(fiber, thrownValue, lanes);
    }
  }
}

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free