Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions packages/react-reconciler/src/ReactFiberApplyGesture.js
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,12 @@ function recursivelyInsertClonesFromExistingTree(
const viewTransitionState: ViewTransitionState = child.stateNode;
// TODO: If this was already cloned by a previous pass we can reuse those clones.
viewTransitionState.clones = null;
// "Existing" view transitions are in subtrees that didn't update so
// this is a "current". We normally clear this upon rerendering
// but we use this flag to track changes from layout in the commit.
// So we need it to be cleared before we do that.
// TODO: Use some other temporary state to track this.
child.flags &= ~Update;
let nextPhase;
if (visitPhase === CLONE_EXIT) {
// This was an Enter of a ViewTransition. We now move onto unhiding the inner
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,12 @@ export function commitNestedViewTransitions(changedParent: Fiber): void {
props.default,
props.update,
);
// "Nested" view transitions are in subtrees that didn't update so
// this is a "current". We normally clear this upon rerendering
// but we use this flag to track changes from layout in the commit.
// So we need it to be cleared before we do that.
// TODO: Use some other temporary state to track this.
child.flags &= ~Update;
if (className !== 'none') {
applyViewTransitionToHostInstances(
child.child,
Expand Down
Loading