Redux - how to keep the reducer state during hot reload : <p>I use  <em>React</em> + <em>Redux</em> + <em>Webpack</em> + <em>WebpackDevserver</em>. Once the hot loader is launched all my reducers are reseted to the initial state. </p>

<p>Can I keep somehow my reducers in the actual state?</p>

<p>My Webpack config contains:</p>

<pre><code>entry: [
    "./index.jsx"
],
output: {
    filename: "./bundle.js"
},
module: {
    loaders: [
        {
            test: /\.js|\.jsx$/,
            exclude: /node_modules/,
            loaders: ["react-hot","babel-loader"],
         }
    ]
},
plugins: [
    new webpack.HotModuleReplacementPlugin()
]
</code></pre>

<p>My reducers stats with:</p>

<pre><code>const initialState = {
...
}

export default function config(state = initialState, action) { ...
</code></pre>

<p>I start my Webpack Dev-Server just by:</p>

<pre><code>"start": "webpack-dev-server",
</code></pre>
