Skip to content

Commit f0c159a

Browse files
committed
Insert before recursing so that we can read the style so far
1 parent b12a537 commit f0c159a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/react-reconciler/src/ReactFiberApplyGesture.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -834,18 +834,18 @@ function insertDestinationClonesOfFiber(
834834
}
835835

836836
if (visitPhase === CLONE_EXIT || visitPhase === CLONE_UNHIDE) {
837+
appendChild(hostParentClone, clone);
838+
unhideInstance(clone, finishedWork.memoizedProps);
837839
recursivelyInsertClones(
838840
finishedWork,
839841
clone,
840842
null,
841843
CLONE_APPEARING_PAIR,
842844
);
843-
appendChild(hostParentClone, clone);
844-
unhideInstance(clone, finishedWork.memoizedProps);
845845
trackHostMutation();
846846
} else {
847-
recursivelyInsertClones(finishedWork, clone, null, visitPhase);
848847
appendChild(hostParentClone, clone);
848+
recursivelyInsertClones(finishedWork, clone, null, visitPhase);
849849
}
850850
if (parentViewTransition !== null) {
851851
if (parentViewTransition.clones === null) {

0 commit comments

Comments
 (0)