New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add documentation for React Router 6.4 support. #5822
Add documentation for React Router 6.4 support. #5822
Conversation
@onurtemizkan is attempting to deploy a commit to the Sentry Team on Vercel. A member of the Team first needs to authorize it. |
@@ -34,6 +34,51 @@ Make sure `Sentry.reactRouterV6Instrumentation` is initialized by your `Sentry.i | |||
|
|||
</Alert> | |||
|
|||
### Usage with React Router 6.4 Data API | |||
_(Available in version 7.21.0 and above)_ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's move this above v6?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The initialization part above is common for all 6.x versions (reactRouterV6Instrumentation(...)
). Will have to repeat that info if we do that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah fair, than we can keep it here.
|
||
<Alert level="warning" title="Note"> | ||
|
||
[`createHashRouter`](https://reactrouter.com/en/main/routers/create-hash-router) is not yet supported by Sentry. On the other hand [`createMemoryRouter`](https://reactrouter.com/en/main/routers/create-memory-router) can be instrumented using `wrapCreateBrowserRouter` function. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should create a GH issue about createHashRouter
that we can link folks to here.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made a few small tweaks, but otherwise this looks good.
src/platforms/javascript/guides/react/configuration/integrations/react-router.mdx
Outdated
Show resolved
Hide resolved
src/platforms/javascript/guides/react/configuration/integrations/react-router.mdx
Outdated
Show resolved
Hide resolved
Co-authored-by: Liza Mock <lizka920@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Released in 7.21.0
so merging https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md#7210
Documents: getsentry/sentry-javascript#6172
TODO: Update the version