Skip to content

[docs] No import from react-router#28329

Merged
eps1lon merged 1 commit intomui:masterfrom
eps1lon:docs/no-direct-react-router
Sep 15, 2021
Merged

[docs] No import from react-router#28329
eps1lon merged 1 commit intomui:masterfrom
eps1lon:docs/no-direct-react-router

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