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 @@ -128,9 +128,10 @@ Sentry.init({
128128
129129Wrap 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 }
132132import type { ReactNode } from " react" ;
133133import { createRootRoute } from " @tanstack/react-router" ;
134+ import { wrapCreateRootRouteWithSentry } from " @sentry/tanstackstart-router" ;
134135
135136// (Wrap `createRootRoute`, not its return value!)
136137export 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```
You can’t perform that action at this time.
0 commit comments