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

[docs] No import from react-router #28329

Merged
merged 1 commit into from
Sep 15, 2021

Conversation

eps1lon
Copy link
Member

@eps1lon eps1lon commented Sep 14, 2021

In an application only a single version of react-router can exist (https://github.com/remix-run/react-router/releases/tag/v5.0.0).

Since react-router-dom exports everything from react-router we can automatically ensure this by not directly importing from react-router. Otherwise we get failures such as https://app.netlify.com/sites/material-ui/deploys/613d60a8b0b0ad00075eb389

Closes #28282

@eps1lon eps1lon added the docs Improvements or additions to the documentation label Sep 14, 2021
@mui-pr-bot
Copy link

mui-pr-bot commented Sep 14, 2021

No bundle size changes (experimental)

Generated by 🚫 dangerJS against ec5ed71

@eps1lon eps1lon merged commit 54bcde1 into mui:master Sep 15, 2021
@eps1lon eps1lon deleted the docs/no-direct-react-router branch September 15, 2021 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to the documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants