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

Unified imports of routing components to react-router-dom #3825

Merged
merged 6 commits into from
Oct 17, 2019
Merged

Unified imports of routing components to react-router-dom #3825

merged 6 commits into from
Oct 17, 2019

Conversation

thclark
Copy link

@thclark thclark commented Oct 16, 2019

As discussed in #3821, the import of routing components

Not: This is a partial fix to #3821 in that it encourages users to import the react-router-dom library correctly (making occurrence of the issue less likely).

This PR does not address the other part of a fix, in which react-router-dom needs to be a peer dependency.

There's one difficulty here. react-router's StaticContext is used in the typing system, but it's not part of the public API, and therefore not re-exported from react-router-dom. So I've had to leave that as being from react-router, and hope that doesn't defy the point of all this.

@fzaninotto fzaninotto merged commit f8114d5 into marmelab:next Oct 17, 2019
@fzaninotto fzaninotto added this to the 3.0.0 milestone Oct 17, 2019
@fzaninotto
Copy link
Member

Thanks!

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