Skip to content

Commit 7e0407f

Browse files
committed
old
1 parent f00ed71 commit 7e0407f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react-reconciler/src/ReactFiberWorkLoop.old.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ import {
8383
supportsMicrotasks,
8484
errorHydratingContainer,
8585
scheduleMicrotask,
86-
requestPostPaintCallback,
8786
} from './ReactFiberHostConfig';
8887

8988
import {
@@ -261,6 +260,7 @@ import {
261260
suspendedThenableDidResolve,
262261
isTrackingSuspendedThenable,
263262
} from './ReactFiberWakeable.old';
263+
import {schedulePostPaintCallback} from './ReactPostPaintCallback';
264264

265265
const ceil = Math.ceil;
266266

@@ -2653,7 +2653,7 @@ function commitRootImpl(
26532653
// and then call the callback via the correct end time.
26542654
const prevRootTransitionCallbacks = root.transitionCallbacks;
26552655
if (prevRootTransitionCallbacks !== null) {
2656-
requestPostPaintCallback(endTime => {
2656+
schedulePostPaintCallback(endTime => {
26572657
const prevPendingTransitionCallbacks = currentPendingTransitionCallbacks;
26582658
if (prevPendingTransitionCallbacks !== null) {
26592659
currentPendingTransitionCallbacks = null;

0 commit comments

Comments
 (0)