@samitouri / QOS-React-2 / commits / c781156163

Fix performance issue in react-devtools when highlight enabled (#18498)

* Fix performance issue in react-devtools when highlight enabled * getting minimum expiration time (fix)

Faelivrinx committed Apr 6, 2020 at 17:17 UTC c781156163f014d15eeb464296a17aba4406d2ec
1 file changed +3 -1
packages/react-devtools-shared/src/backend/views/TraceUpdates/index.js
+3 -1
@@ -127,7 +127,9 @@ function prepareToDraw(): void {
127
128 draw(nodeToData);
129
130 - redrawTimeoutID = setTimeout(prepareToDraw, earliestExpiration - now);
130 + if (earliestExpiration !== Number.MAX_VALUE) {
131 + redrawTimeoutID = setTimeout(prepareToDraw, earliestExpiration - now);
132 + }
133 }
134
135 function measureNode(node: Object): Rect | null {