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

Use react-router-dom when possible #4137

Merged
merged 2 commits into from
Jan 24, 2022

Conversation

antgamdia
Copy link
Contributor

Description of the change

When upgrading some deps at #4121, I noticed there were a few errors related to react-router.

This PR is replacing some imports from react-router to the library we extensively use across the project react-router-dom. Whereas they are both really similar, the latter includes some defaults values for web applications (instead of being generic so that react-native applications can also use the routing features).

Benefits

This change makes the tests pass after bump up the versions in #4121.

Possible drawbacks

N/A

Applicable issues

N/A

Additional information

Unfortunately, I don't know what is the root cause. Nevertheless, we are using an old version of react-router. In v6 there are plenty of breaking changes. However, the required effort isn't worthwhile atm (and they are still developing some adapters to ease the transitions, so we better keep waiting).

Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
@antgamdia antgamdia mentioned this pull request Jan 20, 2022
@castelblanque
Copy link
Collaborator

Excellent, an easy but effective fix. Thanks!

@antgamdia antgamdia merged commit cae5a0e into vmware-tanzu:master Jan 24, 2022
@antgamdia antgamdia deleted the useReactRouterDom branch January 24, 2022 10:34
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.

2 participants