Skip to content

Commit 439ecbf

Browse files
committed
fix(tanstackstart): added missing imports, highlights, and typos
1 parent 4d85a45 commit 439ecbf

File tree

1 file changed

+3
-2
lines changed
  • docs/platforms/javascript/guides/tanstackstart-react

1 file changed

+3
-2
lines changed

docs/platforms/javascript/guides/tanstackstart-react/index.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,10 @@ Sentry.init({
132132

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

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

139140
// (Wrap `createRootRoute`, not its return value!)
140141
export const Route = wrapCreateRootRouteWithSentry(createRootRoute)({
@@ -195,7 +196,7 @@ class MyErrorBoundary extends React.Component {
195196
// ...
196197
}
197198

198-
export const MySentryWrappedErrorBoundary = withErrorBoundary(MyErrorBoundary, {
199+
export const MySentryWrappedErrorBoundary = Sentry.withErrorBoundary(MyErrorBoundary, {
199200
// ... sentry error wrapper options
200201
});
201202
```

0 commit comments

Comments
 (0)