Skip to content

Commit

Permalink
old
Browse files Browse the repository at this point in the history
  • Loading branch information
lunaruan committed Sep 12, 2022
1 parent aeb5c50 commit 598e074
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-reconciler/src/ReactFiberWorkLoop.old.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ import {
supportsMicrotasks,
errorHydratingContainer,
scheduleMicrotask,
requestPostPaintCallback,
} from './ReactFiberHostConfig';

import {
Expand Down Expand Up @@ -261,6 +260,7 @@ import {
suspendedThenableDidResolve,
isTrackingSuspendedThenable,
} from './ReactFiberWakeable.old';
import {schedulPostPaintCallback} from './ReactPostPaintCallback';

const ceil = Math.ceil;

Expand Down Expand Up @@ -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 => {
schedulPostPaintCallback(endTime => {
const prevPendingTransitionCallbacks = currentPendingTransitionCallbacks;
if (prevPendingTransitionCallbacks !== null) {
currentPendingTransitionCallbacks = null;
Expand Down

0 comments on commit 598e074

Please sign in to comment.