Silence usages of componentWillReceiveProps

For https://github.com/vector-im/riot-web/issues/12877
This commit is contained in:
Travis Ralston 2020-04-01 14:35:39 -06:00
parent ab6bd4104f
commit 47e5cfecf2
28 changed files with 56 additions and 30 deletions

View file

@ -254,7 +254,8 @@ export default createReactClass({
}
},
componentWillReceiveProps: function(nextProps) {
// TODO: [REACT-WARNING] Replace with appropriate lifecycle event
UNSAFE_componentWillReceiveProps: function(nextProps) {
// re-check the sender verification as outgoing events progress through
// the send process.
if (nextProps.eventSendStatus !== this.props.eventSendStatus) {