Skip to content

Warn on attempting to change <Router routes> #2581

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

Merged
merged 1 commit into from
Nov 26, 2015
Merged

Warn on attempting to change <Router routes> #2581

merged 1 commit into from
Nov 26, 2015

Conversation

taion
Copy link
Contributor

@taion taion commented Nov 20, 2015

No description provided.

@taion taion mentioned this pull request Nov 20, 2015
@@ -60,6 +60,12 @@ class Router extends Component {
nextProps.history === this.props.history,
'You cannot change <Router history>; it will be ignored'
)

warning(
(nextProps.routes || nextProps.children) ===
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inlined so babel-plugin-dev-expression will strip the whole statement.

@taion
Copy link
Contributor Author

taion commented Nov 20, 2015

I don't think we need a CHANGES entry for this (so I didn't add one).

taion added a commit that referenced this pull request Nov 26, 2015
Warn on attempting to change <Router routes>
@taion taion merged commit 0673dd1 into remix-run:master Nov 26, 2015
@taion taion deleted the warn-routes-change branch November 26, 2015 04:16
@lock lock bot locked as resolved and limited conversation to collaborators Jan 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant