This commit is contained in:
Diego Mello 2022-11-29 16:31:33 -03:00
parent d42f623a2f
commit de6a897ec4
1 changed files with 0 additions and 24 deletions

View File

@ -98,30 +98,6 @@ class ListContainer extends React.Component<IListContainerProps, IListContainerS
console.timeEnd(`${this.constructor.name} mount`);
}
// shouldComponentUpdate(nextProps: IListContainerProps, nextState: IListContainerState) {
// const { refreshing, highlightedMessage } = this.state;
// const { hideSystemMessages, tunread, ignored, loading } = this.props;
// if (loading !== nextProps.loading) {
// return true;
// }
// if (highlightedMessage !== nextState.highlightedMessage) {
// return true;
// }
// if (refreshing !== nextState.refreshing) {
// return true;
// }
// if (!dequal(hideSystemMessages, nextProps.hideSystemMessages)) {
// return true;
// }
// if (!dequal(tunread, nextProps.tunread)) {
// return true;
// }
// if (!dequal(ignored, nextProps.ignored)) {
// return true;
// }
// return false;
// }
componentDidUpdate(prevProps: IListContainerProps) {
const { hideSystemMessages } = this.props;
if (!dequal(hideSystemMessages, prevProps.hideSystemMessages)) {