@samitouri / QOS-React / commits / a5a7f1063e

[Fiber] Don't call performance.now() twice in a row (#30936)

Sebastian Markbåge committed Sep 10, 2024 at 16:46 UTC a5a7f1063e6f190c64c779b2aa54d28fb7b92cfb
1 file changed +1 -1
packages/react-reconciler/src/ReactProfilerTimer.js
+1 -1
@@ -101,7 +101,7 @@ function startProfilerTimer(fiber: Fiber): void {
101 profilerStartTime = now();
102
103 if (((fiber.actualStartTime: any): number) < 0) {
104 - fiber.actualStartTime = now();
104 + fiber.actualStartTime = profilerStartTime;
105 }
106 }
107