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

Warning: [react-router] You cannot change <Router routes>; it will be ignored #1

Closed
bsr203 opened this issue Jul 29, 2016 · 1 comment

Comments

@bsr203
Copy link

bsr203 commented Jul 29, 2016

Hi,

I still get this error while trying out this sample. Could you get it work without. I saw many threads about it at RR repo, but none worked yet.

ref: remix-run/react-router#2704 (comment)

thanks,
bsr.

[WDS] App hot update...
only-dev-server.js:67 [HMR] Checking for updates on the server...
browser.js:49 Warning: [react-router] You cannot change <Router routes>; it will be ignoredwarning @ browser.js:49routerWarning @ routerWarning.js:31Router_componentWillReceiveProps @ Router.js:186updateComponent @ ReactCompositeComponent.js:631receiveComponent @ ReactCompositeComponent.js:564receiveComponent @ ReactReconciler.js:129_updateRenderedComponent @ ReactCompositeComponent.js:784_performComponentUpdate @ ReactCompositeComponent.js:753updateComponent @ ReactCompositeComponent.js:670receiveComponent @ ReactCompositeComponent.js:564receiveComponent @ ReactReconciler.js:129_updateRenderedComponent @ ReactCompositeComponent.js:784_performComponentUpdate @ ReactCompositeComponent.js:753updateComponent @ ReactCompositeComponent.js:670receiveComponent @ ReactCompositeComponent.js:564receiveComponent @ ReactReconciler.js:129_updateRenderedComponent @ ReactCompositeComponent.js:784_performComponentUpdate @ ReactCompositeComponent.js:753updateComponent @ ReactCompositeComponent.js:670receiveComponent @ ReactCompositeComponent.js:564receiveComponent @ ReactReconciler.js:129_updateRenderedComponent @ ReactCompositeComponent.js:784_performComponentUpdate @ ReactCompositeComponent.js:753updateComponent @ ReactCompositeComponent.js:670receiveComponent @ ReactCompositeComponent.js:564receiveComponent @ ReactReconciler.js:129_updateRenderedComponent @ ReactCompositeComponent.js:784_performComponentUpdate @ ReactCompositeComponent.js:753updateComponent @ ReactCompositeComponent.js:670receiveComponent @ ReactCompositeComponent.js:564receiveComponent @ ReactReconciler.js:129performUpdateIfNecessary @ ReactCompositeComponent.js:576performUpdateIfNecessary @ ReactReconciler.js:163runBatchedUpdates @ ReactUpdates.js:151perform @ Transaction.js:138perform @ Transaction.js:138perform @ ReactUpdates.js:90flushBatchedUpdates @ ReactUpdates.js:173closeAll @ Transaction.js:204perform @ Transaction.js:151batchedUpdates @ ReactDefaultBatchingStrategy.js:63enqueueUpdate @ ReactUpdates.js:201enqueueUpdate @ ReactUpdateQueue.js:25enqueueElementInternal @ ReactUpdateQueue.js:217(anonymous function) @ ReactMount.js:253scrollMonitor @ ReactMount.js:241_updateRootComponent @ ReactMount.js:252_renderSubtreeIntoContainer @ ReactMount.js:344render @ ReactMount.js:392(anonymous function) @ app.jsx:70(anonymous function) @ app.jsx:75hotApply @ bundle.js:561(anonymous function) @ only-dev-server.js:19
log-apply-result.js:20 [HMR] Updated modules:
log-apply-result.js:22 [HMR]  - 267
log-apply-result.js:22 [HMR]  - 101

@eliseumds
Copy link

Apparently it happens only on the second hot reload. It may be because of <AppContainer> being rendered.

@bsr203 bsr203 closed this as completed Sep 28, 2016
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

No branches or pull requests

2 participants