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

Store isn't being hot-reloaded #207

Open
hardchor opened this issue Oct 28, 2016 · 0 comments
Open

Store isn't being hot-reloaded #207

hardchor opened this issue Oct 28, 2016 · 0 comments

Comments

@hardchor
Copy link
Owner

See klarna/electron-redux#8:

at my app I have implemented my store as in timesheets, but when I change code during development, it does hot reload, but state does not get updated (when using aliased actions). Does this actually work at the timesheets app ?

const rootReducer = getRootReducer(scope);

but next rootReducer is called like this:

store.replaceReducer(require('../reducers'));

This might be due to

if (!process.env.NODE_ENV && module.hot) {
not being hit (!process.env.NODE_ENV was probably meant to be something like process.env.NODE_ENV !== 'production')

/cc @rsaccon

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

1 participant