Skip to content

Commit 196b181

Browse files
authored
Consistently use wrapCreateBrowserRouterV6
There were a few places on this page still using the deprecated `wrapCreateBrowserRouter` method.
1 parent 33685cc commit 196b181

File tree

1 file changed

+3
-3
lines changed
  • docs/platforms/javascript/guides/react/features/react-router

1 file changed

+3
-3
lines changed

docs/platforms/javascript/guides/react/features/react-router/v6.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Sentry.init({
5656
});
5757

5858
const sentryCreateBrowserRouter =
59-
Sentry.wrapCreateBrowserRouter(createBrowserRouter);
59+
Sentry.wrapCreateBrowserRouterV6(createBrowserRouter);
6060

6161
const router = sentryCreateBrowserRouter([
6262
// your routes...
@@ -65,7 +65,7 @@ const router = sentryCreateBrowserRouter([
6565

6666
<Alert level="warning" title="Note">
6767

68-
You can instrument [`createMemoryRouter`](https://reactrouter.com/en/main/routers/create-memory-router) and [`createHashRouter`](https://reactrouter.com/en/main/routers/create-hash-router) using the `wrapCreateBrowserRouter` function.
68+
You can instrument [`createMemoryRouter`](https://reactrouter.com/en/main/routers/create-memory-router) and [`createHashRouter`](https://reactrouter.com/en/main/routers/create-hash-router) using the `wrapCreateBrowserRouterV6` function.
6969

7070
</Alert>
7171

@@ -231,4 +231,4 @@ export function YourCustomRootErrorBoundary() {
231231
## Next Steps:
232232

233233
- [Return to **Getting Started**](../../)
234-
- [Return to the main integrations page](../)
234+
- [Return to the main integrations page](../)

0 commit comments

Comments
 (0)