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
> A devtool for inspecting the performance of React Components
9
9
@@ -175,15 +175,20 @@ You can pass an **option** object as an argument to `registerObserver` to enable
175
175
{
176
176
shouldLog: boolean, // default value: false
177
177
port: number // default value: 8080
178
+
timeout: number // default value: 2000
178
179
}
179
180
```
180
181
181
-
You can pass two properties to the **`option`** object, `shouldLog` and `port`.
182
+
You can pass three properties to the **`option`** object, `shouldLog` and `port`.
182
183
183
184
*`shouldLog` - It takes a **boolean** value. If set to true, measures will be logged to the console.
184
185
185
186
*`port` - Port number for the server where the measures will be send
186
187
188
+
*`timeout` - A timeout value to defer the initialisation of the extension.
189
+
190
+
If your application takes time to load, it's better to defer the initialisation of extension by specifying the timeout value through `timeout` property. This ensures that the extension will load only after your application has properly loaded in the browser so that the updated measures can be rendered. However, you can skip this property if your application is in small size.
0 commit comments