enable isInputPending in Scheduler
Summary
This has been enabled at Meta for some time, but it looks like the changes were never published here. Enables isInputPending at a maxYieldMs of 10ms. Removes enableIsInputPendingContinuous flag and its corresponding yield interval, as we ended up landing on a configuration where it never got used.
How did you test this change?
yarn test packages/scheduler/src/__tests__/Scheduler-test.js
ah, need to update Scheduler tests
Comparing: 0cdfef19b96cc6202d48e0812b5069c286d12b04...be752937d8b7f5ac244da488df1c6f51a7ef155e
Critical size changes
Includes critical production bundles, as well as any change greater than 2%:
Significant size changes
Includes any change greater than 0.2%:
Expand to show
Generated by :no_entry_sign: dangerJS against be752937d8b7f5ac244da488df1c6f51a7ef155e
@rickhanlonii yeah, this is already implemented with feature detection: https://github.com/facebook/react/blob/noahlemen-iip-scheduler/packages/scheduler/src/forks/Scheduler.js#L104-L111
it will continue with the 5ms frame interval if its not defined: https://github.com/facebook/react/blob/noahlemen-iip-scheduler/packages/scheduler/src/forks/Scheduler.js#L472-L503