Remove componentWillReceiveProps from listings

[MAILPOET-2133]
This commit is contained in:
Pavel Dohnal
2019-06-26 10:14:15 +02:00
committed by M. Shull
parent cc9e9f86dc
commit aa5547c4f2

View File

@ -104,9 +104,12 @@ const Listing = createReactClass({ // eslint-disable-line react/prefer-es6-class
}
},
componentWillReceiveProps: function componentWillReceiveProps(nextProps) {
const params = nextProps.params || {};
this.initWithParams(params);
componentDidUpdate: function componentDidUpdate(prevProps) {
const params = this.props.params || {};
const prevParams = prevProps.params || {};
if (!_.isEqual(params, prevParams)) {
this.initWithParams(params);
}
},
componentWillUnmount: function componentWillUnmount() {