Make Redux reducers and other non-components hot loadable

Questions
I’m having a tough time getting my reducers to be hot swapable. I’m using Webpack and I figured out that this is because I need to explicitly re-load the reducers in and accept the event. Which I’m doing with this code in my
However now when I run this it still tells me So – I need some help getting this to work. The code is available at https://github.com/wesbos/Simple-Redux and you can reproduce it by doing:
|
————————————————-
Answer
I haven’t looked closely but my best guess is that it’s this issue. So instead of
you probably want
which matches the Babel 6 output for ES6 default exports. |
flux,javascript,reactjs,redux,webpack |
Facebook Comments