File tree 2 files changed +5
-20
lines changed
2 files changed +5
-20
lines changed Original file line number Diff line number Diff line change @@ -90,23 +90,6 @@ function App() {
90
90
export default withSentry (App );
91
91
```
92
92
93
- You can disable or configure ` ErrorBoundary ` using a second parameter to ` withSentry ` .
94
-
95
- ``` ts
96
-
97
- withSentry (App , {
98
- wrapWithErrorBoundary: false
99
- });
100
-
101
- // or
102
-
103
- withSentry (App , {
104
- errorBoundaryOptions: {
105
- fallback: <p >An error has occurred < / p >
106
- }
107
- });
108
- ```
109
-
110
93
To set context information or send manual events, use the exported functions of ` @sentry/remix ` .
111
94
112
95
``` ts
Original file line number Diff line number Diff line change @@ -96,12 +96,14 @@ function startNavigationSpan(matches: RouteMatch<string>[]): void {
96
96
}
97
97
98
98
/**
99
- * Wraps a remix `root` (see: https://remix.run/docs/en/v1/guides/migrating-react-router-app#creating- the-root-route)
99
+ * Wraps a remix `root` (see: https://remix.run/docs/en/main/start/quickstart# the-root-route)
100
100
* To enable pageload/navigation tracing on every route.
101
- * Also wraps the application with `ErrorBoundary`.
102
101
*
103
102
* @param OrigApp The Remix root to wrap
104
- * @param options The options for ErrorBoundary wrapper.
103
+ * @param useEffect The `useEffect` hook from `react`
104
+ * @param useLocation The `useLocation` hook from `@remix-run/react`
105
+ * @param useMatches The `useMatches` hook from `@remix-run/react`
106
+ * @param instrumentNavigation Whether to instrument navigation spans. Defaults to `true`.
105
107
*/
106
108
export function withSentry < P extends Record < string , unknown > , R extends React . ComponentType < P > > (
107
109
OrigApp : R ,
You can’t perform that action at this time.
0 commit comments