mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[Fiber] Don't call performance.now() twice in a row (#30936)
This commit is contained in:
1 parent
66cf2cfc8a
commit
a5a7f1063e
1 file changed
+1
-1
+1
-1
@@ -101,7 +101,7 @@ function startProfilerTimer(fiber: Fiber): void {
|
||||
profilerStartTime = now();
|
||||
|
||||
if (((fiber.actualStartTime: any): number) < 0) {
|
||||
fiber.actualStartTime = now();
|
||||
fiber.actualStartTime = profilerStartTime;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user