File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
packages/react-reconciler/src Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -193,13 +193,8 @@ export function popComponentEffectStart(prevEffectStart: number): void {
193193 if ( ! enableProfilerTimer || ! enableProfilerCommitHooks ) {
194194 return ;
195195 }
196- if ( prevEffectStart < 0 ) {
197- // If the parent component didn't have a start time, we use the start
198- // of the child as the parent's start time. We subtrack a minimal amount of
199- // time to ensure that the parent's start time is before the child to ensure
200- // that the performance tracks line up in the right order.
201- componentEffectStartTime -= 0.001 ;
202- } else {
196+ // If the parent component didn't have a start time, we let this current time persist.
197+ if ( prevEffectStart >= 0 ) {
203198 // Otherwise, we restore the previous parent's start time.
204199 componentEffectStartTime = prevEffectStart ;
205200 }
You can’t perform that action at this time.
0 commit comments