I struggled quite a bit with this one, because understanding the components of hot reloading was very difficult. There are a lot of explanations out there that are light on details, or just downright wrong.

I should have taken Dan's advice from the very next paragraph, because using the hot reload api is much simpler.

The hot reload section of the new jspm beta guide shows you how to setup the incredibly simple __reload hook. This is great for simple React application that use component state, but doesn't work for Flux/Redux implementations that store state outside of the components.

To get this working with redux, you need two pieces.

First, you need to be able to hydrate your store. Dan provided the code for this in this github issue.

I have these split into two different modules, since I like to keep my store configuration out of main.js. I don't know how you need to organize your code, but the important part is that the main.js module exports store, so that it is available to the __reload hook. Remember, the m argument to the __reload hook is the previous module. The scope of the __reload hook is the current/new module/