import { createStore, applyMiddleware, combineReducers, compose } from 'redux';
import { hashHistory } from 'react-router';
import { routerMiddleware, routerReducer as routing, push } from 'react-router-redux';
import persistState from 'redux-localstorage';
import thunk from 'redux-thunk';


const router = routerMiddleware(hashHistory);

const actionCreators = {
    push
};

const reducers = {
    routing
};

const middlewares = [ thunk, router ];

const composeEnhancers = (() => {
    const compose_ = window && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__;
    if(process.env.NODE_ENV === 'development' && compose_) {
        return compose_({ actionCreators });
    }
    return compose;
})();

export default function configureStore(initialState) {
    const enhancer = composeEnhancers(applyMiddleware(...middlewares), persistState());
    const rootReducer = combineReducers(reducers);

    return createStore(rootReducer, initialState, enhancer);
}

@@ -200,24 +200,27 @@
 ter-redux';%0A
+///
 import persi
@@ -288,16 +288,903 @@
 hunk';%0A%0A
+import telemetry from './reducers/telemetryReducer';%0Aimport settings from './reducers/settingReducer';%0A%0A%0Aconst initialState = %7B%0A    telemetry: %7B%0A        times: %5B%5D,%0A        primary: %7B%0A            temps: %5B%5D,%0A            press: %5B%5D,%0A            hmdts: %5B%5D%0A        %7D,%0A        gps: %7B%0A            latts: %5B%5D,%0A            latts_o: %5B%5D,%0A            longs: %5B%5D,%0A            longs_o: %5B%5D,%0A            altts: %5B%5D%0A        %7D,%0A        stats: %7B%0A            rssis: %5B%5D,%0A            batlvls: %5B%5D,%0A            proprots: %5B%5D%0A        %7D,%0A        acc: %7B%0A            xs: %5B%5D,%0A            ys: %5B%5D,%0A            zs: %5B%5D%0A        %7D,%0A        rot: %7B%0A            xs: %5B%5D,%0A            ys: %5B%5D,%0A            zs: %5B%5D%0A        %7D,%0A        mag: %7B%0A            xs: %5B%5D,%0A            ys: %5B%5D,%0A            zs: %5B%5D%0A        %7D,%0A        vel: %7B%0A            accs: %5B%5D,%0A            altts: %5B%5D,%0A            press: %5B%5D%0A        %7D%0A    %7D,%0A    settings: %7B%0A    %7D%0A%7D;%0A%0A
 %0Aconst r
@@ -1291,16 +1291,45 @@
  routing
+,%0A    telemetry,%0A    settings
 %0A%7D;%0A%0Acon
@@ -1618,23 +1618,8 @@
 );%0A%0A
-export default 
 func
@@ -1723,16 +1723,18 @@
 lewares)
+/*
 , persis
@@ -1741,16 +1741,18 @@
 tState()
+*/
 );%0A    c
@@ -1861,8 +1861,53 @@
 cer);%0A%7D%0A
+export default configureStore(initialState);%0A

Implement Redux pipelines