mirror of
https://github.com/hanzoai/react.git
synced 2026-09-24 17:02:27 +00:00
Fix performance issue in react-devtools when highlight enabled (#18498)
* Fix performance issue in react-devtools when highlight enabled * getting minimum expiration time (fix)
This commit is contained in:
@@ -127,7 +127,9 @@ function prepareToDraw(): void {
|
||||
|
||||
draw(nodeToData);
|
||||
|
||||
redrawTimeoutID = setTimeout(prepareToDraw, earliestExpiration - now);
|
||||
if (earliestExpiration !== Number.MAX_VALUE) {
|
||||
redrawTimeoutID = setTimeout(prepareToDraw, earliestExpiration - now);
|
||||
}
|
||||
}
|
||||
|
||||
function measureNode(node: Object): Rect | null {
|
||||
|
||||
Reference in New Issue
Block a user