@@ -40,7 +40,7 @@ class ReactPerfDevtool extends React.Component {
40
40
this . setState ( { loading : true } )
41
41
42
42
// Set the timer, and get the total measures and flush them if the store is empty.
43
- this . timer = setInterval ( ( ) => this . getMeasuresLength ( ) , 2000 )
43
+ this . timer = setInterval ( ( ) => this . getMeasuresLength ( ) , 2300 )
44
44
}
45
45
46
46
componentWillUnmount ( ) {
@@ -147,6 +147,8 @@ class ReactPerfDevtool extends React.Component {
147
147
}
148
148
149
149
render ( ) {
150
+ const commonStyles = { fontWeight : 500 , padding : '8px' }
151
+
150
152
return (
151
153
< div
152
154
style = { {
@@ -158,18 +160,20 @@ class ReactPerfDevtool extends React.Component {
158
160
< button onClick = { this . reload } > Reload the inspected page</ button >
159
161
</ div >
160
162
161
- < div style = { { fontWeight : 500 , padding : '8px' } } >
163
+ < div style = { commonStyles } >
162
164
Pending Events: { this . state . pendingEvents }
163
165
</ div >
164
- < Table measures = { this . state . perfData } />
165
166
{ this . state . hasError ? (
166
- this . state . errorMsg
167
+ < div style = { commonStyles } > { this . state . errorMsg } </ div >
167
168
) : (
168
- < Results
169
- rawMeasures = { this . state . rawMeasures }
170
- totalTime = { this . state . totalTime }
171
- loading = { this . state . loading }
172
- />
169
+ < React . Fragment >
170
+ < Table measures = { this . state . perfData } />
171
+ < Results
172
+ rawMeasures = { this . state . rawMeasures }
173
+ totalTime = { this . state . totalTime }
174
+ loading = { this . state . loading }
175
+ />
176
+ </ React . Fragment >
173
177
) }
174
178
</ div >
175
179
)
0 commit comments