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

Function pushComponentEffectStart

packages/react-reconciler/src/ReactProfilerTimer.js:444–451  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

442}
443
444export function pushComponentEffectStart(): number {
445 if (!enableProfilerTimer || !enableProfilerCommitHooks) {
446 return 0;
447 }
448 const prevEffectStart = componentEffectStartTime;
449 componentEffectStartTime = -1.1; // Track the next start.
450 return prevEffectStart;
451}
452
453export function popComponentEffectStart(prevEffectStart: number): void {
454 if (!enableProfilerTimer || !enableProfilerCommitHooks) {

Calls

no outgoing calls

Tested by

no test coverage detected