You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the main component that renders the table, containing information about
@@ -59,16 +59,6 @@ export class ReactPerfDevtool extends React.Component {
59
59
}
60
60
}
61
61
62
-
componentWillMount(){
63
-
// When the devtool is launched first, measures may not be available.
64
-
// Reload the window again to get the new measures and then display them.
65
-
// Why ? We rely on the observer hook that the user has installed in his/her project.
66
-
// This chrome plugin is just way to interpret the results derived from the observer's API
67
-
if(store.length===0){
68
-
this.reloadInspectedWindow()
69
-
}
70
-
}
71
-
72
62
componentDidMount(){
73
63
// Show the loader while the measures get resolved.
74
64
// showChart, when set to true, render the canvas required for Chart.js.
@@ -77,7 +67,7 @@ export class ReactPerfDevtool extends React.Component {
77
67
// Defer the initialization of the extension until the application loads. Why ?
78
68
// Because some of the applications are huge in size and may take a lot of time to load.
79
69
// If the extension initialization process kicks-in before the app loads, we are trapped inside the error state.
80
-
// With this, users can configure a timeout value for initialization of the extension using the observer hook
70
+
// With this, users can configure a timeout value for initialization of the extension using the observer hook like this `registerObserver({ timeout: 4000 })`
81
71
// Default value for the timeout is 2 sec.
82
72
83
73
// We need to resolve the promise after one sec. to make sure we have the updated __REACT_PERF_DEVTOOL_GLOBAL_STORE__ object otherwise we might end up with null
@@ -88,7 +78,7 @@ export class ReactPerfDevtool extends React.Component {
88
78
return
89
79
}
90
80
91
-
// This is also backward compatible with older versions of observer hook
81
+
// This is also backward compatible with older versions of observer hook (for versions <= @3.0.8)
0 commit comments