Skip to content

Commit 1532a99

Browse files
tjosepotommy-josepovic
andauthored
Fix animated transition example bug (#7929)
Co-authored-by: tommy-josepovic <[email protected]>
1 parent 1407a67 commit 1532a99

File tree

1 file changed

+1
-1
lines changed
  • packages/react-router-dom/examples/Animation

1 file changed

+1
-1
lines changed

packages/react-router-dom/examples/Animation/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function AnimationApp() {
5151
the old location as it animates out.
5252
*/}
5353
<CSSTransition
54-
key={location.key}
54+
key={location.pathname}
5555
classNames="fade"
5656
timeout={300}
5757
>

0 commit comments

Comments
 (0)