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

Function popComponentEffectStart

packages/react-reconciler/src/ReactProfilerTimer.js:453–462  ·  view source on GitHub ↗
(prevEffectStart: number)

Source from the content-addressed store, hash-verified

451}
452
453export function popComponentEffectStart(prevEffectStart: number): void {
454 if (!enableProfilerTimer || !enableProfilerCommitHooks) {
455 return;
456 }
457 // If the parent component didn't have a start time, we let this current time persist.
458 if (prevEffectStart >= 0) {
459 // Otherwise, we restore the previous parent's start time.
460 componentEffectStartTime = prevEffectStart;
461 }
462}
463
464export function pushComponentEffectDuration(): number {
465 if (!enableProfilerTimer || !enableProfilerCommitHooks) {

Calls

no outgoing calls

Tested by

no test coverage detected