MCPcopy Index your code
hub / github.com/react/react / markRenderDerivedCause

Function markRenderDerivedCause

packages/react-reconciler/src/ReactFiberWorkLoop.js:2425–2438  ·  view source on GitHub ↗
(fiber: Fiber)

Source from the content-addressed store, hash-verified

2423}
2424
2425export function markRenderDerivedCause(fiber: Fiber): void {
2426 if (enableProfilerTimer && enableComponentPerformanceTrack) {
2427 if (__DEV__) {
2428 if (workInProgressUpdateTask === null) {
2429 // If we don't have a cause associated with this render, it's likely because some
2430 // other render left work behind on this Fiber. The real cause is this Fiber itself.
2431 // We use its debugTask as the cause for this render. This might not be the only
2432 // one when multiple siblings are rendered but they ideally shouldn't be.
2433 workInProgressUpdateTask =
2434 fiber._debugTask == null ? null : fiber._debugTask;
2435 }
2436 }
2437 }
2438}
2439
2440export function markTransitionStarted() {
2441 globalMostRecentTransitionTime = now();

Calls

no outgoing calls

Tested by

no test coverage detected