Remove componentWillReceiveProps from listings
[MAILPOET-2133]
This commit is contained in:
@ -104,9 +104,12 @@ const Listing = createReactClass({ // eslint-disable-line react/prefer-es6-class
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
componentWillReceiveProps: function componentWillReceiveProps(nextProps) {
|
componentDidUpdate: function componentDidUpdate(prevProps) {
|
||||||
const params = nextProps.params || {};
|
const params = this.props.params || {};
|
||||||
|
const prevParams = prevProps.params || {};
|
||||||
|
if (!_.isEqual(params, prevParams)) {
|
||||||
this.initWithParams(params);
|
this.initWithParams(params);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
componentWillUnmount: function componentWillUnmount() {
|
componentWillUnmount: function componentWillUnmount() {
|
||||||
|
Reference in New Issue
Block a user