logComponentAborted() — react Function Reference
Architecture documentation for the logComponentAborted() function in ReactFlightPerformanceTrack.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD e9f5a018_5f25_533a_f57b_2d9734cb38c7["logComponentAborted()"] e5244d6e_35d7_7c99_420d_82c7be8fe931["ReactFlightPerformanceTrack.js"] e9f5a018_5f25_533a_f57b_2d9734cb38c7 -->|defined in| e5244d6e_35d7_7c99_420d_82c7be8fe931 style e9f5a018_5f25_533a_f57b_2d9734cb38c7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-client/src/ReactFlightPerformanceTrack.js lines 144–198
export function logComponentAborted(
componentInfo: ReactComponentInfo,
trackIdx: number,
startTime: number,
endTime: number,
childrenEndTime: number,
rootEnv: string,
): void {
if (supportsUserTiming) {
const env = componentInfo.env;
const name = componentInfo.name;
const isPrimaryEnv = env === rootEnv;
const entryName =
isPrimaryEnv || env === undefined ? name : name + ' [' + env + ']';
const measureName = '\u200b' + entryName;
if (__DEV__) {
const properties: Array<[string, string]> = [
[
'Aborted',
'The stream was aborted before this Component finished rendering.',
],
];
if (componentInfo.key != null) {
addValueToProperties('key', componentInfo.key, properties, 0, '');
}
if (componentInfo.props != null) {
addObjectToProperties(componentInfo.props, properties, 0, '');
}
performance.measure(measureName, {
start: startTime < 0 ? 0 : startTime,
end: childrenEndTime,
detail: {
devtools: {
color: 'warning',
track: trackNames[trackIdx],
trackGroup: COMPONENTS_TRACK,
tooltipText: entryName + ' Aborted',
properties,
},
},
});
performance.clearMeasures(measureName);
} else {
console.timeStamp(
measureName,
startTime < 0 ? 0 : startTime,
childrenEndTime,
trackNames[trackIdx],
COMPONENTS_TRACK,
'warning',
);
}
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does logComponentAborted() do?
logComponentAborted() is a function in the react codebase, defined in packages/react-client/src/ReactFlightPerformanceTrack.js.
Where is logComponentAborted() defined?
logComponentAborted() is defined in packages/react-client/src/ReactFlightPerformanceTrack.js at line 144.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free