diff --git a/packages/react-reconciler/src/ReactFiberTransition.new.js b/packages/react-reconciler/src/ReactFiberTransition.new.js index c855cb3953126..bb5f5d93d2026 100644 --- a/packages/react-reconciler/src/ReactFiberTransition.new.js +++ b/packages/react-reconciler/src/ReactFiberTransition.new.js @@ -139,13 +139,13 @@ export function pushTransition( export function popTransition(workInProgress: Fiber, current: Fiber | null) { if (current !== null) { - if (enableCache) { - pop(resumedCache, workInProgress); - } - if (enableTransitionTracing) { pop(transitionStack, workInProgress); } + + if (enableCache) { + pop(resumedCache, workInProgress); + } } } diff --git a/packages/react-reconciler/src/ReactFiberTransition.old.js b/packages/react-reconciler/src/ReactFiberTransition.old.js index ed73d4716622b..1abb0e2180ab5 100644 --- a/packages/react-reconciler/src/ReactFiberTransition.old.js +++ b/packages/react-reconciler/src/ReactFiberTransition.old.js @@ -139,13 +139,13 @@ export function pushTransition( export function popTransition(workInProgress: Fiber, current: Fiber | null) { if (current !== null) { - if (enableCache) { - pop(resumedCache, workInProgress); - } - if (enableTransitionTracing) { pop(transitionStack, workInProgress); } + + if (enableCache) { + pop(resumedCache, workInProgress); + } } }