diff --git a/ui/src/hosts/components/HostsTable.js b/ui/src/hosts/components/HostsTable.js index 89655e19ad..85fd072a72 100644 --- a/ui/src/hosts/components/HostsTable.js +++ b/ui/src/hosts/components/HostsTable.js @@ -1,4 +1,5 @@ import React, {PropTypes} from 'react'; +import shallowCompare from 'react-addons-shallow-compare'; import {Link} from 'react-router'; import _ from 'lodash'; @@ -140,12 +141,13 @@ const HostRow = React.createClass({ }, shouldComponentUpdate(nextProps) { - return this.props.host !== nextProps.host; + return shallowCompare(this, nextProps); }, render() { const {host, source} = this.props; const {name, cpu, load, apps = []} = host; + return ( {name}