import {createStore, compose, applyMiddleware} from 'redux';
import createNodeLogger from 'redux-node-logger';
import app from '../reducers';

const loggerMiddleware = createNodeLogger({});

const createStoreWithMiddleware = compose(
    applyMiddleware(
        loggerMiddleware
    )
)(createStore);

const store = createStoreWithMiddleware(app);


const unsubscribe = store.subscribe(() => {
    console.log('Store changed !');
});

export default store;

@@ -343,17 +343,16 @@
 (app);%0A%0A
-%0A
 const un
@@ -390,45 +390,8 @@
 =%3E %7B
-%0A    console.log('Store changed !');%0A
 %7D);%0A

Remove useless log