Skip to content

Commit cdef9ce

Browse files
authored
fix(tanstackstart): added missing imports, highlights, and typos (#13301)
1 parent 22a27da commit cdef9ce

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
@@ -128,9 +128,10 @@ Sentry.init({
128128

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

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

135136
// (Wrap `createRootRoute`, not its return value!)
136137
export const Route = wrapCreateRootRouteWithSentry(createRootRoute)({
@@ -191,7 +192,7 @@ class MyErrorBoundary extends React.Component {
191192
// ...
192193
}
193194

194-
export const MySentryWrappedErrorBoundary = withErrorBoundary(MyErrorBoundary, {
195+
export const MySentryWrappedErrorBoundary = Sentry.withErrorBoundary(MyErrorBoundary, {
195196
// ... sentry error wrapper options
196197
});
197198
```

0 commit comments

Comments
 (0)