Make SingleStat into a pure component

Mimicking pattern seen in GaugeChart
pull/10616/head
Alex P 2017-12-08 15:50:33 -08:00
parent b2cf341b8a
commit 09e5a66092
1 changed files with 1 additions and 5 deletions

View File

@ -5,11 +5,7 @@ import lastValues from 'shared/parsing/lastValues'
import {SMALL_CELL_HEIGHT} from 'src/shared/graphs/helpers'
class SingleStat extends Component {
shouldComponentUpdate(nextProps, nextState) {
return shallowCompare(this, nextProps, nextState)
}
class SingleStat extends PureComponent {
render() {
const {data, cellHeight, isFetchingInitially} = this.props