-
Notifications
You must be signed in to change notification settings - Fork 296
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
hot reloading not working unless I have ?reload=true #255
Comments
What info do you get in the browser console when reloading fails? |
|
I got the same error as @Always-sunny:
However if I add the It allows the browser to refresh the entire page on HMR update. I'd love to get this to work without having to do a full browser refresh. Any suggestions? |
You should tell your application how to deal with the changes. Here is an example: //imports
...
const renderApp = () => {
ReactDOM.hydrate((
<App />
), document.getElementById('root'));
};
// This is needed for Hot Module Replacement
if (module.hot) {
module.hot.accept('./App', () => renderApp());
} |
@ungerpeter Already implemented. |
Ditto |
The same situation with I use new approach:
Only adding Error messages in console:
|
I spent yesterday all day. But now suddenly I've found the reason. It needs to add |
Same here works only with here is my webpack setup:
express.js:
Note, my app is a react app. Maybe it doesn't work because I don't use |
App won't hot reload unless I add '?reload=true' to my webpack-hot-middleware entry point in the webpack config.
The rest of my config is set up exactly according to docs. I'm using it along with react-hot-loader which is also set up according to docs.
Is there something I'm missing? I have the react-hot-loader component wrapping my root component in my index.js; so I don't know why it won't work without the reload query.
The text was updated successfully, but these errors were encountered: