Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,10 @@ Sentry.init({

Wrap TanStack Start's `createRootRoute` function using `wrapCreateRootRouteWithSentry` to apply tracing to Server-Side Rendering (SSR):

```tsx {filename:app/routes/__root.tsx} {5}
```tsx {filename:app/routes/__root.tsx} {3,6}
import type { ReactNode } from "react";
import { createRootRoute } from "@tanstack/react-router";
import { wrapCreateRootRouteWithSentry } from "@sentry/tanstackstart-router";

// (Wrap `createRootRoute`, not its return value!)
export const Route = wrapCreateRootRouteWithSentry(createRootRoute)({
Expand Down Expand Up @@ -195,7 +196,7 @@ class MyErrorBoundary extends React.Component {
// ...
}

export const MySentryWrappedErrorBoundary = withErrorBoundary(MyErrorBoundary, {
export const MySentryWrappedErrorBoundary = Sentry.withErrorBoundary(MyErrorBoundary, {
// ... sentry error wrapper options
});
```
Expand Down