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

Hot loading reducers not supported #23

Closed
ntucker opened this issue Feb 26, 2016 · 2 comments
Closed

Hot loading reducers not supported #23

ntucker opened this issue Feb 26, 2016 · 2 comments

Comments

@ntucker
Copy link

ntucker commented Feb 26, 2016

Needs to be explicit:

https://github.com/reactjs/react-redux/releases/tag/v2.0.0

@ntucker
Copy link
Author

ntucker commented Feb 26, 2016

It's weird I found


if (module.hot) {
  module.hot.accept('./redux/modules', () => {
      return store.replaceReducer(require('./redux/modules'))
    }
  )
}

in entry, but hot reloading still doesn't work for me (FYI: my path is diff)

@tomatau
Copy link
Owner

tomatau commented Feb 28, 2016

Good spot! Fixed in b403992

Had to call the replace function in the same file that the store is created... little bit annoying but what the hey

@tomatau tomatau closed this as completed Feb 28, 2016
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

2 participants