Remove experimental scheduler flags#16672
Conversation
| // prevent idle periods. | ||
| let idleTimeoutID; | ||
| if (requestTimerEventBeforeFirstFrame) { | ||
| idleTimeoutID = setTimeout(function onTimerEventBeforeFirstFrame() { |
There was a problem hiding this comment.
Since you've removed this timeout, there's now no timeout fallback for the initial rAF call, like there is for subsequent rAFs: https://github.com/facebook/react/blob/ff006451ad792ed26793691402bf7b5f813205f7/packages/scheduler/src/forks/SchedulerHostConfig.default.js#L306-L311
But it's whatever since we're going to disable the rAF stuff anyway.
There was a problem hiding this comment.
That timeout should have already been in the else branch of this feature, anyway.
There was a problem hiding this comment.
there's now no timeout fallback for the initial rAF call, like there is for subsequent rAFs
I guess that explains #16629?
|
React: size: 0.0%, gzip: 0.0% Details of bundled changes.Comparing: 040ca0f...51f728a react
scheduler
|
Removes
requestIdleCallbackBeforeFirstFrameandrequestTimerEventBeforeFirstFrame.Both were rAF-specific experiments but we went with MessageLoop instead. We left rAF temporarily in the code but since we never actually used these code paths, I think we should delete them to make the code easier to understand.