Skip to content

Commit fc33554

Browse files
committed
Update withSentryRouteTracing examples on README.
1 parent 5704702 commit fc33554

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

packages/remix/README.md

+15-3
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,23 @@ function App() {
9090
);
9191
}
9292

93-
export default withSentryRouteTracing(App, {
94-
wrapWithErrorBoundary: false // default: true
93+
export default withSentryRouteTracing(App);
94+
```
95+
96+
You can disable or configure `ErrorBoundary` using a second parameter to `withSentryRouteTracing`.
97+
98+
```ts
99+
100+
withSentryRouteTracing(App, {
101+
wrapWithErrorBoundary: false
102+
});
103+
104+
// or
105+
106+
withSentryRouteTracing(App, {
95107
errorBoundaryOptions: {
96108
fallback: <p>An error has occurred</p>
97-
} // optional
109+
}
98110
});
99111
```
100112

0 commit comments

Comments
 (0)