import React from 'react';
import { render } from 'react-dom';
import { createStore, applyMiddleware, compose } from 'redux';
import { Provider } from 'react-redux';
import { browserHistory } from 'react-router';
import { syncHistoryWithStore, routerMiddleware } from 'react-router-redux';
import { persistStore, autoRehydrate } from 'redux-persist';
import thunk from 'redux-thunk';
import reducers from './reducers';
import Router from './Router';
// import { fetchAssets } from './actions/assets';

const preloadedState = window.__PRELOADED_STATE__;

// Allow the passed state to be garbage-collected
delete window.__PRELOADED_STATE__;

const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
const store = createStore(reducers, preloadedState, composeEnhancers(
    applyMiddleware(thunk, routerMiddleware(browserHistory)),
    autoRehydrate()
  )
);

persistStore(store, {
  whitelist: [
    'profile'
  ]
});

const history = syncHistoryWithStore(browserHistory, store);

// store.dispatch(fetchAssets());

render(
  <Provider store={store}>
    <Router history={history} />
  </Provider>,
  document.getElementById('root')
);

@@ -446,59 +446,8 @@
 er';
-%0A// import %7B fetchAssets %7D from './actions/assets';
 %0A%0Aco
@@ -949,43 +949,8 @@
 );%0A%0A
-// store.dispatch(fetchAssets());%0A%0A
 rend

Remove commented code