Skip to content
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

change: [M3-7584] - Update react-router-dom in preparation for React 18 #10154

Conversation

bnussman-akamai
Copy link
Contributor

@bnussman-akamai bnussman-akamai commented Feb 6, 2024

Description πŸ“

Updates react-router-dom (and its types) to the latest v5 version for React 18 compatibility πŸ“¦
This should get us one step closer to React 18

How to test πŸ§ͺ

  • Check general routing
  • Verify e2es pass (If e2es pass, we can conclude that this update is okay)

As an Author I have considered πŸ€”

  • πŸ‘€ Doing a self review
  • ❔ Our contribution guidelines
  • 🀏 Splitting feature into small PRs
  • βž• Adding a changeset
  • πŸ§ͺ Providing/Improving test coverage
  • πŸ” Removing all sensitive information from the code and PR description
  • 🚩 Using a feature flag to protect the release
  • πŸ‘£ Providing comprehensive reproduction steps
  • πŸ“‘ Providing or updating our documentation
  • πŸ•› Scheduling a pair reviewing session
  • πŸ“± Providing mobile support
  • β™Ώ Providing accessibility support

@bnussman-akamai bnussman-akamai added Dependencies Pull requests that update a dependency file Ready for Review labels Feb 6, 2024
@bnussman-akamai bnussman-akamai self-assigned this Feb 6, 2024
@bnussman-akamai bnussman-akamai requested a review from a team as a code owner February 6, 2024 20:21
@bnussman-akamai bnussman-akamai requested review from cpathipa and hkhalil-akamai and removed request for a team February 6, 2024 20:21
* @example "/profile/display"
* @example "https://linode.com"
*/
to: string;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@abailly-akamai Curious to see what you think about this because you most recently revamped this component.

We could write some logic to handle all cases of to: H.LocationDescriptor<S> | ((location: H.Location<S>) => H.LocationDescriptor<S>), but I think this might be a more desirable approach for now.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree - it matches our current linking conventions and url matching so unless we have a need to pass anything else am happy to keep it overridden for strings only

Copy link

github-actions bot commented Feb 6, 2024

Coverage Report: βœ…
Base Coverage: 81.18%
Current Coverage: 81.19%

Copy link
Contributor

@jdamore-linode jdamore-linode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸš€

@bnussman-akamai bnussman-akamai added Add'tl Approval Needed Waiting on another approval! and removed Ready for Review labels Feb 7, 2024
Copy link
Contributor

@abailly-akamai abailly-akamai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

  • e2e suites are passing
  • no regressions found while testing the UI

* @example "/profile/display"
* @example "https://linode.com"
*/
to: string;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree - it matches our current linking conventions and url matching so unless we have a need to pass anything else am happy to keep it overridden for strings only

@bnussman-akamai bnussman-akamai added Approved Multiple approvals and ready to merge! and removed Add'tl Approval Needed Waiting on another approval! labels Feb 7, 2024
@bnussman-akamai bnussman-akamai merged commit e33c125 into linode:develop Feb 7, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved Multiple approvals and ready to merge! Dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants