jumpsuit / jumpstate

Jumpstate is a simple and powerful state management utility for Redux.
MIT License
425 stars 22 forks source link

Hot module replacement not work #38

Open timoxley opened 7 years ago

timoxley commented 7 years ago

It appears HMR can not work with jumpstate due to complaints like: An action called "${actionName}" in the ${sandboxName} sandbox already exists! Please pick another action name!

or, in other words: global state bad.

desktoping commented 7 years ago

if you are only concerned about changing the reducers aka actionName. you can use the reset method inside actions file before you load your new reducers.

matuscongrady commented 7 years ago

I can't make HMR to work. Using React-hot-loader-3 (beta). Tried basiacally every possible configuration.

Could you provide an example of jumpstate working with HMR?

@timoxley Have you solved this issue somehow?

Thanks!