MCPcopy Create free account
hub / github.com/react/react / transferActualDuration

Function transferActualDuration

packages/react-reconciler/src/ReactProfilerTimer.js:685–695  ·  view source on GitHub ↗
(fiber: Fiber)

Source from the content-addressed store, hash-verified

683}
684
685export function transferActualDuration(fiber: Fiber): void {
686 // Transfer time spent rendering these children so we don't lose it
687 // after we rerender. This is used as a helper in special cases
688 // where we should count the work of multiple passes.
689 let child = fiber.child;
690 while (child) {
691 // $FlowFixMe[unsafe-addition] addition with possible null/undefined value
692 fiber.actualDuration += child.actualDuration;
693 child = child.sibling;
694 }
695}
696
697export function startAnimating(lanes: Lanes): void {
698 animatingLanes |= lanes;

Callers 2

unwindWorkFunction · 0.90
completeWorkFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected