dillon1000/react
Commit
Browse files [Scheduler] requestPaint (#15960)
* [Scheduler] requestPaint Signals to Scheduler that the browser needs to paint the screen. React will call it in the commit phase. Scheduler will yield at the end of the current frame, even if there is no pending input. When `isInputPending` is not available, this has no effect, because we yield at the end of every frame regardless. React will call `requestPaint` in the commit phase as long as there's at least one effect. We could choose not to call it if none of the effects are DOM mutations, but this is so rare that it doesn't seem worthwhile to bother checking. * Fall back gracefully if requestPaint is missing
Changed paths13 files
First-parent comparisonpackages/react-art/src/ReactARTHostConfig.js ModifiedM packages/react-dom/src/client/ReactDOMHostConfig.js ModifiedM packages/react-reconciler/src/ReactFiberWorkLoop.js ModifiedM packages/react-reconciler/src/SchedulerWithReactIntegration.js ModifiedM packages/react-reconciler/src/__tests__/ReactSchedulerIntegration-test.internal.js ModifiedM packages/scheduler/npm/umd/scheduler.development.js ModifiedM packages/scheduler/npm/umd/scheduler.production.min.js ModifiedM packages/scheduler/npm/umd/scheduler.profiling.min.js ModifiedM packages/scheduler/src/Scheduler.js ModifiedM packages/scheduler/src/forks/SchedulerHostConfig.default.js ModifiedM packages/scheduler/src/forks/SchedulerHostConfig.mock.js ModifiedM packages/scheduler/unstable_mock.js ModifiedM packages/shared/forks/Scheduler.umd.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…