berzniz / react-overdrive

Super easy magic-move transitions for React apps
https://react-overdrive.now.sh
MIT License
2.97k stars 85 forks source link

React throws warning for unsafe componentWillReceiveProps #71

Open sbeals opened 4 years ago

sbeals commented 4 years ago

console.warn node_modules/react-dom/cjs/react-dom.development.js:88 Warning: componentWillReceiveProps has been renamed, and is not recommended for use. See https://fb.me/react-unsafe-component-lifecycles for details.

Line 158 of overdrive.js:


  componentWillReceiveProps () {
    this.onShowLock = false
    this.onHide()
  }      
berzniz commented 4 years ago

I will accept a PR that fixes it