Replace reacts legacy UNSAFE_ methods with their respective alternatives #53202
Labels
enhancement
New value added to drive a business result
release_note:skip
Skip the PR/issue when compiling release notes
Team:Monitoring
Stack Monitoring team
v8.0.0
I noticed React has been upgraded to
v16.12.0
in our Kibana code base.We should consider refactor all
UNSAFE_...
methods to something that won't be deprecated. Maybe something along the lines of:UNSAFE_componentWillReceiveProps
=>getDerivedStateFromProps
UNSAFE_componentWillMount
=>componentDidMount
(or maybe even constructor?)The text was updated successfully, but these errors were encountered: