diff --git a/packages/react-reconciler/src/ReactFiberWorkLoop.old.js b/packages/react-reconciler/src/ReactFiberWorkLoop.old.js index 5279c30b3a7fa..a221e5136f082 100644 --- a/packages/react-reconciler/src/ReactFiberWorkLoop.old.js +++ b/packages/react-reconciler/src/ReactFiberWorkLoop.old.js @@ -83,7 +83,6 @@ import { supportsMicrotasks, errorHydratingContainer, scheduleMicrotask, - requestPostPaintCallback, } from './ReactFiberHostConfig'; import { @@ -261,6 +260,7 @@ import { suspendedThenableDidResolve, isTrackingSuspendedThenable, } from './ReactFiberWakeable.old'; +import {schedulePostPaintCallback} from './ReactPostPaintCallback'; const ceil = Math.ceil; @@ -2653,7 +2653,7 @@ function commitRootImpl( // and then call the callback via the correct end time. const prevRootTransitionCallbacks = root.transitionCallbacks; if (prevRootTransitionCallbacks !== null) { - requestPostPaintCallback(endTime => { + schedulePostPaintCallback(endTime => { const prevPendingTransitionCallbacks = currentPendingTransitionCallbacks; if (prevPendingTransitionCallbacks !== null) { currentPendingTransitionCallbacks = null;