(fiber: Fiber)
| 2423 | } |
| 2424 | |
| 2425 | export 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 | |
| 2440 | export function markTransitionStarted() { |
| 2441 | globalMostRecentTransitionTime = now(); |
no outgoing calls
no test coverage detected