This repository has been archived on 2024-07-31. You can view files and clone it, but cannot push or open issues or pull requests.
2016-08-31 10:15:12 -04:00
|
|
|
import { createStore, applyMiddleware, compose } from 'redux';
|
2016-08-25 13:52:55 -04:00
|
|
|
import thunk from 'redux-thunk';
|
2016-08-24 11:56:44 -04:00
|
|
|
import appReducer from '../reducers';
|
|
|
|
|
2016-08-31 10:15:12 -04:00
|
|
|
export default function configureStore(initialState) {
|
|
|
|
return createStore(appReducer, initialState, compose(applyMiddleware(thunk), window.devToolsExtension ? window.devToolsExtension() : f => f));
|
2016-08-24 11:56:44 -04:00
|
|
|
}
|