Skip to content

Commit 9a2ab31

Browse files
committed
batch updates to avoid Chart.js issue
1 parent dd0e29d commit 9a2ab31

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/extension/components/ReactPerfDevtool.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,10 @@ export class ReactPerfDevtool extends React.Component {
6565
}
6666

6767
componentDidMount() {
68-
// Display the loading indicator
69-
this.setState({ loading: true })
68+
this.setState({ loading: true, showChart: true })
7069

7170
// Get the total measures and flush them if the store is empty.
7271
this.timer = setInterval(() => this.getMeasuresLength(), 2000)
73-
74-
// Show the chart when we have the measures
75-
this.setState({ showChart: true })
7672
}
7773

7874
componentWillUnmount() {

0 commit comments

Comments
 (0)