File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
docs/platforms/javascript/guides/tanstackstart-react Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -132,9 +132,10 @@ Sentry.init({
132132
133133Wrap 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 }
136136import type { ReactNode } from " react" ;
137137import { createRootRoute } from " @tanstack/react-router" ;
138+ import { wrapCreateRootRouteWithSentry } from " @sentry/tanstackstart-router" ;
138139
139140// (Wrap `createRootRoute`, not its return value!)
140141export 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```
You can’t perform that action at this time.
0 commit comments