Silence usages of componentWillReceiveProps
For https://github.com/vector-im/riot-web/issues/12877
This commit is contained in:
parent
ab6bd4104f
commit
47e5cfecf2
28 changed files with 56 additions and 30 deletions
|
@ -450,8 +450,9 @@ export default createReactClass({
|
|||
}
|
||||
},
|
||||
|
||||
componentWillReceiveProps: function(newProps) {
|
||||
if (this.props.groupId != newProps.groupId) {
|
||||
// TODO: [REACT-WARNING] Replace with appropriate lifecycle event
|
||||
UNSAFE_componentWillReceiveProps: function(newProps) {
|
||||
if (this.props.groupId !== newProps.groupId) {
|
||||
this.setState({
|
||||
summary: null,
|
||||
error: null,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue