clampTransitionTimers() — react Function Reference
Architecture documentation for the clampTransitionTimers() function in ReactProfilerTimer.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD d5e8236a_ad07_dcb6_c3c1_0ba1230d29eb["clampTransitionTimers()"] e054b9c7_41f1_c7f7_97bb_98b6a445e94b["ReactProfilerTimer.js"] d5e8236a_ad07_dcb6_c3c1_0ba1230d29eb -->|defined in| e054b9c7_41f1_c7f7_97bb_98b6a445e94b style d5e8236a_ad07_dcb6_c3c1_0ba1230d29eb fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-reconciler/src/ReactProfilerTimer.js lines 382–390
export function clampTransitionTimers(finalTime: number): void {
if (!enableProfilerTimer || !enableComponentPerformanceTrack) {
return;
}
// If we had new updates come in while we were still rendering or committing, we don't want
// those update times to create overlapping tracks in the performance timeline so we clamp
// them to the end of the commit phase.
transitionClampTime = finalTime;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does clampTransitionTimers() do?
clampTransitionTimers() is a function in the react codebase, defined in packages/react-reconciler/src/ReactProfilerTimer.js.
Where is clampTransitionTimers() defined?
clampTransitionTimers() is defined in packages/react-reconciler/src/ReactProfilerTimer.js at line 382.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free