-
Notifications
You must be signed in to change notification settings - Fork 9
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
HMR? #1
Comments
@kurtextrem It already supports webpack's HMR: /**
* Enable hot module reloading in development mode.
*/
if (process.env.NODE_ENV === 'development') {
if (module.hot) {
// Handle updates to the components.
module.hot.accept('./component', () => {
console.log('Updated components');
renderRoot();
});
// Handle updates to the reducers.
module.hot.accept('./reducer', () => {
console.log('Updated reducers');
let rootReducer = require('./reducer').default;
store.replaceReducer(rootReducer);
});
// Handle updates to the epics.
module.hot.accept('./epic', () => {
console.log('Updated epics');
let rootEpic = require('./epic').default;
epicMiddleware.replaceEpic(rootEpic);
});
}
} I also tried I will definitely look into Thanks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Very cool project, thank you!
Any plans for hot module reloading (using webpack)? Or maybe: https://github.com/porsager/Wright
The text was updated successfully, but these errors were encountered: