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

Swap out connected-react-router for redux-first-history #4971

Closed
wants to merge 2 commits into from

Conversation

paulgain
Copy link
Contributor

@paulgain paulgain commented Oct 13, 2022

Description of change

As part of upgrading react-router-dom to v6 from v5 we need to swap out connected-react-router for redux-first-history (open to alternatives) as a prerequisite to the upgrade. Unfortunately, connected-react-router only has a redux binding for React Router v4 and v5 whereas redux-first-history gives us a v6 binding. In addition, connected-react-router appears to be minimally maintained, only security vulnerabilities are addressed despite multiple dev requests to upgrade the package going back to the 4th November 2021.

This PR simply swaps out the two in preparation for the react-router-dom upgrade.

Test instructions

Everything should be as it was, there are no visual changes.

Checklist

  • Has the branch been rebased to main?
  • Automated tests (Any of the following when applicable: Unit, Functional or End-to-End)
  • Manual compatibility testing (Browsers: Chrome, Firefox, Edge, Safari)

@paulgain paulgain requested a review from a team as a code owner October 13, 2022 14:44
@cypress
Copy link

cypress bot commented Oct 13, 2022



Test summary

25 0 0 0


Run details

Project data-hub-frontend
Status Passed
Commit 5ebbdf7
Started Nov 22, 2022 10:50 AM
Ended Nov 22, 2022 10:52 AM
Duration 01:55 💡
OS Linux Debian - 10
Browser Chrome 93

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@paulgain paulgain force-pushed the fix/remove-connected-react-router branch 2 times, most recently from 4d058cb to e69710f Compare October 17, 2022 11:23
@paulgain
Copy link
Contributor Author

paulgain commented Oct 24, 2022

When trying to add a duplicate contact to Data Hub this is the redux error(5), at this point the UI hangs. This error doesn't exist in connected-react-router which is somewhat disconcerting.

error

@paulgain paulgain force-pushed the fix/remove-connected-react-router branch from e69710f to aff3ccb Compare November 7, 2022 12:03
@paulgain paulgain force-pushed the fix/remove-connected-react-router branch from aff3ccb to 807fd2c Compare November 16, 2022 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant