shields icon indicating copy to clipboard operation
shields copied to clipboard

remove use of componentWillReceiveProps()

Open chris48s opened this issue 8 years ago • 1 comments

The following lifecycle method are deprecated in react 16.3+

  • componentWillMount
  • componentWillReceiveProps
  • componentWillUpdate

and will be removed in 17: https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html

Fortunately we're not leaning too heavily on them. We have a single use of componentWillReceiveProps() which we will need to remove:

https://github.com/badges/shields/blob/04290e890bcbb27264a69f6693fa27ec4cb69359/frontend/components/markup-modal.js#L34-L54

chris48s avatar Sep 26 '18 20:09 chris48s

Hi, i would like to fix it :)

piekar294 avatar Oct 19 '18 08:10 piekar294