-
Notifications
You must be signed in to change notification settings - Fork 799
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
Problem migrating to v3 #473
Comments
@dcosson I don't know if that warning message is the cause of your issue but as it just so happens, I found a work around for that tonight. produces the warning message
does not produce the warning message
In my limited experience so far, it seems that RHL is kind of touchy when React Router is in the mix. What I have observed is that it only seems to work when |
I'm trying to migrate to v3, and am following directions here #243 (comment) which were the most full-fledged I could find.
I'm not sure how to interpret a couple of lines. For steps 2 & 3, if I do want React Hot Loader to preserve state should I still also be setting up
module.hot
to re-render the root component?I've tried it both ways, when I don't have module.hot I get a warning on every change that it can't update because it would require a full reload and nothing happens. When I do add module.hot, the state is not preserved and the whole page re-renders on every change (even though I've done all of step 3). In this latter case there's a react-router error when the hot reload happens that says
Warning: [react-router] You cannot change <Router routes>; it will be ignored
, not sure if that's related.Hoping someone can point me in the right direction (or perhaps there's a bug using this with react router?)
The text was updated successfully, but these errors were encountered: