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
|[Telemetry](./telemetry.telemetry.md#telemetry_interface)| An instance of the Firebase Telemetry SDK.<!---->Do not create this instance directly. Instead, use [getTelemetry()](./telemetry.md#gettelemetry_cf608e1)<!---->. |
* This should be installed near the root of your application. Caught errors, including those
37
+
* implicitly caught by Error Boundaries, will not be captured by this component.
38
+
*
39
+
* @example
40
+
* ```html
41
+
* <body>
42
+
* <FirebaseTelemetry firebaseOptions={options} />
43
+
* ... my app ...
44
+
* </body>
45
+
* ```
46
+
*
47
+
* @param firebaseOptions - Options to run {@link @firebase/app#initializeApp}. If this is not provided, initializeApp needs to be called explicitly elsewhere in your application.
48
+
* @returns The default {@link Telemetry} instance for the given {@link @firebase/app#FirebaseApp}.
49
+
*
50
+
* @public
51
+
*/
52
+
exportfunctionFirebaseTelemetry({
53
+
firebaseOptions
54
+
}: {
55
+
firebaseOptions?: FirebaseOptions;
56
+
}): null{
57
+
useEffect(()=>{
36
58
if(typeofwindow==='undefined'){
37
59
return;
38
60
}
@@ -41,27 +63,23 @@ export class FirebaseTelemetry extends Component<FirebaseTelemetryProps> {
0 commit comments