maisano / react-router-transition

painless transitions built for react-router, powered by react-motion
http://maisano.github.io/react-router-transition/
MIT License
2.59k stars 139 forks source link

Warning: componentWillReceiveProps #121

Closed xavruss closed 3 years ago

xavruss commented 3 years ago

react-dom.development.js:67 Warning: componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.

Please update the following components: TransitionMotion

maisano commented 3 years ago

Which version of react-router-transition are you using? TransitionMotion is from a transitive dependency, react-motion–the latest version should contain the prefixed lifecycle method name.

xavruss commented 3 years ago

my version is "react-router-transition": "^ 2.1.0", I am also surprised, my version of react is 17, and to install router-transition I used the --legacy-peer-deps flag I guess that was it. sorry for the late reply and my bad english