Skip to content

Commit

Permalink
fix(Stats): let the widget render on all values (#3070)
Browse files Browse the repository at this point in the history
This removes the implementation of shouldComponentUpdate. This can be seen as a regression but given that it's a pretty simple widget, the impact shouldn't be noticeable.

Fix #3056
  • Loading branch information
bobylito committed Aug 20, 2018
1 parent adca94e commit cd8f17e
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/components/Stats/Stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@ import autoHideContainerHOC from '../../decorators/autoHideContainer.js';
import headerFooterHOC from '../../decorators/headerFooter.js';

export class RawStats extends Component {
shouldComponentUpdate(nextProps) {
return (
this.props.nbHits !== nextProps.nbHits ||
this.props.processingTimeMS !== nextProps.processingTimeMS
);
}

render() {
const data = {
hasManyResults: this.props.nbHits > 1,
Expand Down

0 comments on commit cd8f17e

Please sign in to comment.