Skip to content

Commit

Permalink
Update previousChildren when they are equal
Browse files Browse the repository at this point in the history
  • Loading branch information
leroykorterink committed Oct 11, 2023
1 parent 0b6a5ef commit 9743db8
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export function TransitionPresence({

useEffect(() => {
if (childrenAreEqual(children, previousChildren)) {
setPreviousChildren(children);
return;
}

Expand Down

0 comments on commit 9743db8

Please sign in to comment.