This repository has been archived by the owner on Aug 21, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 430
Doesn't work with React-Router :( #128
Comments
Are you writing everything in a single file? Hot reloading will only work if you split the root component into a separate module. |
Not in a single file. Here is what my main entry file looks like: import MyRouteComponent from "./my-route-component";
ReactDOM.render(
<Router>
<Route path="/" component={MyRouteComponent} />
...
</Router>
document.body
); Maybe the entry file should be even simpler? Like: import MyRouter from "./my-router";
ReactDOM.render(
<MyRouter />,
document.body
); Would that work? |
Please provide a project reproducing the problem. |
Along with exact instructions to reproduce it |
Closing as there’s not enough information, and anyway a big change is coming: gaearon/react-hot-boilerplate#61 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I started using hot reloading and it gave me a huge productivity boost. Thanks everyone for making this possible!
The only problem I'm having now is that route components can't be hot-updated. I'm getting the following warning in my console:
Is there any workaround to make it work?
The text was updated successfully, but these errors were encountered: