diff --git a/packages/react-devtools-shared/src/backend/views/TraceUpdates/index.js b/packages/react-devtools-shared/src/backend/views/TraceUpdates/index.js index e94d4fd5c13d0..0637d7b818f10 100644 --- a/packages/react-devtools-shared/src/backend/views/TraceUpdates/index.js +++ b/packages/react-devtools-shared/src/backend/views/TraceUpdates/index.js @@ -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 {