Skip to content

Commit

Permalink
[Fiber] Don't call performance.now() twice in a row (#30936)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebmarkbage authored Sep 10, 2024
1 parent 66cf2cf commit a5a7f10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-reconciler/src/ReactProfilerTimer.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function startProfilerTimer(fiber: Fiber): void {
profilerStartTime = now();

if (((fiber.actualStartTime: any): number) < 0) {
fiber.actualStartTime = now();
fiber.actualStartTime = profilerStartTime;
}
}

Expand Down

0 comments on commit a5a7f10

Please sign in to comment.