[Bugfix/Feature] Fixed slice render staggering on dashboard first load (#3478)

* Feature: disable dashboard refresh staggering

* Removed refresh staggering everywhere except during periodic render
This commit is contained in:
Jeff Niu
2017-10-04 10:23:17 -07:00
committed by Maxime Beauchemin
parent bb0f69d074
commit e95132ddc3
4 changed files with 51 additions and 31 deletions

View File

@@ -35,9 +35,8 @@ class Controls extends React.PureComponent {
});
}
refresh() {
this.props.dashboard.sliceObjects.forEach((slice) => {
slice.render(true);
});
// Force refresh all slices
this.props.dashboard.renderSlices(this.props.dashboard.sliceObjects, true);
}
changeCss(css) {
this.setState({ css });