Functions
| Function | Description |
|---|---|
| CrashlyticsRoutes({ firebaseApp, crashlyticsOptions }, input) | (Public Preview) A client-side routing component for Next.js App Router that automatically captures navigation events and updates route attributes.This component should be mounted inside a root Client Component layout. |
Interfaces
| Interface | Description |
|---|---|
| Crashlytics | (Public Preview) An instance of the Firebase Crashlytics SDK.Do not create this instance directly. Instead, use getCrashlytics(). |
| CrashlyticsFeature | (EXPERIMENTAL) An opaque feature plugin object returned by Crashlytics feature factory functions such as breadcrumbs(). |
| CrashlyticsOptions | (Public Preview) Options for initializing the Crashlytics service using getCrashlytics(). |
function({ firebaseApp, crashlyticsOptions }, ...)
CrashlyticsRoutes({ firebaseApp, crashlyticsOptions }, input)
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
A client-side routing component for Next.js App Router that automatically captures navigation events and updates route attributes.
This component should be mounted inside a root Client Component layout.
Signature:
export declare function CrashlyticsRoutes(input: {
firebaseApp: FirebaseApp;
crashlyticsOptions?: CrashlyticsOptions;
}): null;
Parameters
| Parameter | Type | Description |
|---|---|---|
| { firebaseApp, crashlyticsOptions } | (not declared) | |
| input | { firebaseApp: FirebaseApp; crashlyticsOptions?: CrashlyticsOptions; } |
Returns:
null
Example
// app/layout.tsx
import { CrashlyticsRoutes } from 'firebase/crashlytics/next-navigation';
export default function RootLayout({ children }) {
return (
<html>
<body>
<CrashlyticsRoutes firebaseApp={app} />
{children}
</body>
</html>
);
}