Home / Function/ getCurrentFiberStackInDev() — react Function Reference

getCurrentFiberStackInDev() — react Function Reference

Architecture documentation for the getCurrentFiberStackInDev() function in ReactCurrentFiber.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  2616241c_af09_8a51_fe4d_cc741f2fc927["getCurrentFiberStackInDev()"]
  c115f947_44f7_8d77_0323_1e260644c151["ReactCurrentFiber.js"]
  2616241c_af09_8a51_fe4d_cc741f2fc927 -->|defined in| c115f947_44f7_8d77_0323_1e260644c151
  style 2616241c_af09_8a51_fe4d_cc741f2fc927 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-reconciler/src/ReactCurrentFiber.js lines 32–44

function getCurrentFiberStackInDev(): string {
  if (__DEV__) {
    if (current === null) {
      return '';
    }
    // Safe because if current fiber exists, we are reconciling,
    // and it is guaranteed to be the work-in-progress version.
    // TODO: The above comment is not actually true. We might be
    // in a commit phase or preemptive set state callback.
    return getOwnerStackByFiberInDev(current);
  }
  return '';
}

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free