salsita / prism

React / Redux action composition made simple http://salsita.github.io/prism/
496 stars 24 forks source link

effectExecutor not available after reducer replacement #23

Closed namjul closed 8 years ago

namjul commented 8 years ago

I encountered a problem when using Webpacks HMR and replacing reducers. The Problem is that the function used in https://github.com/salsita/redux-elm/blob/master/src/storeEnhancer.js#L37 does not get applied after replace the reducer. So when hot module replacement gets trigger all the sagas get cancelled but not re-initiated because all the actions don’t have an effectExecutor any more.

tomkis commented 8 years ago

Fixed in 2.1.6