We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6112ff commit 3e8c86cCopy full SHA for 3e8c86c
packages/scheduler/src/forks/Scheduler.js
@@ -450,7 +450,8 @@ function shouldYieldToHost() {
450
}
451
// There's no pending input. Only yield if we've reached the max
452
// yield interval.
453
- return currentTime >= maxYieldInterval;
+ const timeElapsed = currentTime - (deadline - yieldInterval);
454
+ return timeElapsed >= maxYieldInterval;
455
} else {
456
// There's still time left in the frame.
457
return false;
0 commit comments