Skip to content

Commit accafb8

Browse files
committed
Fix deadline
1 parent 6988663 commit accafb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/reconciler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function workLoop(deadline) {
4747
if (!nextUnitOfWork) {
4848
resetNextUnitOfWork();
4949
}
50-
while (nextUnitOfWork) {
50+
while (nextUnitOfWork && deadline.timeRemaining() > ENOUGH_TIME) {
5151
nextUnitOfWork = performUnitOfWork(nextUnitOfWork);
5252
}
5353
if (pendingCommit) {

0 commit comments

Comments
 (0)