Repository navigation
✨ [RUM-5500] React-router v7 support - #3299
Conversation
Bundles Sizes Evolution
🚀 CPU Performance
🧠 Memory Performance
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3299 +/- ##
==========================================
+ Coverage 92.76% 92.78% +0.02%
==========================================
Files 297 299 +2
Lines 7852 7860 +8
Branches 1790 1790
==========================================
+ Hits 7284 7293 +9
+ Misses 568 567 -1 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Open question: is there a way in the browser-sdk to mark a file as existing only for tests?
When looking at this file without too much context, it can be hard to understand that this should only be used by spec files / the sandbox react app, and not by code exposed to npm
There was a problem hiding this comment.
- Code that is intended for the user is within
packages/*/srcexcept*.spec.*files. - Code for tests are
*.spec.*files and files withintest/folders - Sandbox is not user facing
Does it answer your question?
Miz85
left a comment
There was a problem hiding this comment.
LGTM!
With v7 it looks like you can use react router as a routing library or as a framework. I think this PR covers everything from the library but in the framework part, they introduced a route modules and a route wrapper function. Maybe we could try to see if we can also instrument that? It def. can come in another PR though.
564425a to
0c7bb7d
Compare
b49df4d to
274b11e
Compare

Motivation
Add support for react-router v7 for the rum-react plugin.
Changes
Reuse as much as possible the code from react-router-6, adapt unit test instead of cloning them
Testing
I have gone over the contributing documentation.