chore: remove unused argument from schedule requestHostCallback (#27133)
Noticed this argument was left in the cleanup from https://github.com/facebook/react/pull/27130 It seems to me like it would benefit from being cleaned up too.
tjallingt committed
Jul 20, 2023 at 16:30 UTC
587ae49d71f218d34393291933d513d2975e22c3
1 file changed
+4
-4
packages/scheduler/src/forks/Scheduler.js
+4
-4
@@ -152,7 +152,7 @@ function handleTimeout(currentTime: number) {
152
if (!isHostCallbackScheduled) {
153
if (peek(taskQueue) !== null) {
154
isHostCallbackScheduled = true;
155
- requestHostCallback(flushWork);
155
+ requestHostCallback();
156
} else {
157
const firstTimer = peek(timerQueue);
158
if (firstTimer !== null) {
@@ -419,7 +419,7 @@ function unstable_scheduleCallback(
419
// wait until the next time we yield.
420
if (!isHostCallbackScheduled && !isPerformingWork) {
421
isHostCallbackScheduled = true;
422
- requestHostCallback(flushWork);
422
+ requestHostCallback();
423
}
424
}
425
@@ -434,7 +434,7 @@ function unstable_continueExecution() {
434
isSchedulerPaused = false;
435
if (!isHostCallbackScheduled && !isPerformingWork) {
436
isHostCallbackScheduled = true;
437
- requestHostCallback(flushWork);
437
+ requestHostCallback();
438
}
439
}
440
@@ -616,7 +616,7 @@ if (typeof localSetImmediate === 'function') {
616
};
617
}
618
619
-function requestHostCallback(callback: (initialTime: number) => boolean) {
619
+function requestHostCallback() {
620
if (!isMessageLoopRunning) {
621
isMessageLoopRunning = true;
622
schedulePerformWorkUntilDeadline();