Skip to content

Commit

Permalink
Fix animated transition example bug (#7929)
Browse files Browse the repository at this point in the history
Co-authored-by: tommy-josepovic <[email protected]>
  • Loading branch information
tjosepo and tommy-josepovic authored Jul 30, 2021
1 parent 1407a67 commit 1532a99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-router-dom/examples/Animation/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function AnimationApp() {
the old location as it animates out.
*/}
<CSSTransition
key={location.key}
key={location.pathname}
classNames="fade"
timeout={300}
>
Expand Down

0 comments on commit 1532a99

Please sign in to comment.