diff --git a/packages/remix/README.md b/packages/remix/README.md index fbf8480d5e25..9260def2b700 100644 --- a/packages/remix/README.md +++ b/packages/remix/README.md @@ -90,23 +90,6 @@ function App() { export default withSentry(App); ``` -You can disable or configure `ErrorBoundary` using a second parameter to `withSentry`. - -```ts - -withSentry(App, { - wrapWithErrorBoundary: false -}); - -// or - -withSentry(App, { - errorBoundaryOptions: { - fallback:

An error has occurred

- } -}); -``` - To set context information or send manual events, use the exported functions of `@sentry/remix`. ```ts diff --git a/packages/remix/src/client/performance.tsx b/packages/remix/src/client/performance.tsx index 9d47aae36d4a..8e55c9d683c3 100644 --- a/packages/remix/src/client/performance.tsx +++ b/packages/remix/src/client/performance.tsx @@ -96,12 +96,14 @@ function startNavigationSpan(matches: RouteMatch[]): void { } /** - * Wraps a remix `root` (see: https://remix.run/docs/en/v1/guides/migrating-react-router-app#creating-the-root-route) + * Wraps a remix `root` (see: https://remix.run/docs/en/main/start/quickstart#the-root-route) * To enable pageload/navigation tracing on every route. - * Also wraps the application with `ErrorBoundary`. * * @param OrigApp The Remix root to wrap - * @param options The options for ErrorBoundary wrapper. + * @param useEffect The `useEffect` hook from `react` + * @param useLocation The `useLocation` hook from `@remix-run/react` + * @param useMatches The `useMatches` hook from `@remix-run/react` + * @param instrumentNavigation Whether to instrument navigation spans. Defaults to `true`. */ export function withSentry

, R extends React.ComponentType

>( OrigApp: R,