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. |
| </Alert> | ||
|
|
||
| ### Usage with React Router 6.4 Data API | ||
| _(Available in version 7.21.0 and above)_ |
There was a problem hiding this comment.
Let's move this above v6?
There was a problem hiding this comment.
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.
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.
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 ↗︎
|
lizokm
left a comment
There was a problem hiding this comment.
Made a few small tweaks, but otherwise this looks good.
Co-authored-by: Liza Mock <lizka920@gmail.com>
AbhiPrasad
left a comment
There was a problem hiding this comment.
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