-
Notifications
You must be signed in to change notification settings - Fork 22
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
feat: upgrade react router to v6 #776
Conversation
…al-enterprise into Ali-Abbas/react-router-upgrade
…al-enterprise into Ali-Abbas/react-router-upgrade
…al-enterprise into Ali-Abbas/react-router-upgrade
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #776 +/- ##
==========================================
+ Coverage 84.87% 85.00% +0.13%
==========================================
Files 320 324 +4
Lines 6399 6704 +305
Branches 1552 1626 +74
==========================================
+ Hits 5431 5699 +268
- Misses 941 974 +33
- Partials 27 31 +4
☔ View full report in Codecov by Sentry. |
a6cc833
to
dba2db1
Compare
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.
Looks good to me, thank you!
<Route path="/:enterpriseSlug" component={EnterpriseAppPageRoutes} /> | ||
<PageRoute path="*" component={NotFoundPage} /> | ||
</Switch> | ||
<Route path="/:enterpriseSlug/*" element={<EnterpriseAppPageRoutes />} /> |
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.
Curious: why do we need to add the * at the end?
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.
Curious: why do we need to add the * at the end?
React Router V6 handles nested routes a little bit differently. So in order to match the descendent routes we have to add this *
. [ref]
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.
LGTM, with that one comment about the key
prop
Ticket
React Router Upgrade to v6.
Description
This PR upgrades React Router from
v5
tov6
.