describeDebugInfoFrame() — react Function Reference
Architecture documentation for the describeDebugInfoFrame() function in ReactComponentStackFrame.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 324c4ac3_e019_c3be_ed23_4066fa3a0522["describeDebugInfoFrame()"] 823a67e4_24d9_f152_2b72_4a49ef93fd70["ReactComponentStackFrame.js"] 324c4ac3_e019_c3be_ed23_4066fa3a0522 -->|defined in| 823a67e4_24d9_f152_2b72_4a49ef93fd70 49d3bba9_cc0c_dc58_ea41_76e571ea2c0b["formatOwnerStack()"] 324c4ac3_e019_c3be_ed23_4066fa3a0522 -->|calls| 49d3bba9_cc0c_dc58_ea41_76e571ea2c0b 7728f992_9635_0720_678d_adfb8958436b["describeBuiltInComponentFrame()"] 324c4ac3_e019_c3be_ed23_4066fa3a0522 -->|calls| 7728f992_9635_0720_678d_adfb8958436b style 324c4ac3_e019_c3be_ed23_4066fa3a0522 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/shared/ReactComponentStackFrame.js lines 43–62
export function describeDebugInfoFrame(
name: string,
env: ?string,
location: ?Error,
): string {
if (location != null) {
// If we have a location, it's the child's owner stack. Treat the bottom most frame as
// the location of this function.
const childStack = formatOwnerStack(location);
const idx = childStack.lastIndexOf('\n');
const lastLine = idx === -1 ? childStack : childStack.slice(idx + 1);
if (lastLine.indexOf(name) !== -1) {
// For async stacks it's possible we don't have the owner on it. As a precaution only
// use this frame if it has the name of the function in it.
return '\n' + lastLine;
}
}
return describeBuiltInComponentFrame(name + (env ? ' [' + env + ']' : ''));
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does describeDebugInfoFrame() do?
describeDebugInfoFrame() is a function in the react codebase, defined in packages/shared/ReactComponentStackFrame.js.
Where is describeDebugInfoFrame() defined?
describeDebugInfoFrame() is defined in packages/shared/ReactComponentStackFrame.js at line 43.
What does describeDebugInfoFrame() call?
describeDebugInfoFrame() calls 2 function(s): describeBuiltInComponentFrame, formatOwnerStack.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free