By doing this we can refactor one by one and still having a working app

This commit is contained in:
Belen Curcio
2017-01-19 11:30:30 -03:00
parent 2d414a5ab7
commit b172e30e5b
2 changed files with 6 additions and 4 deletions
@@ -4,7 +4,6 @@ import {graphql} from 'react-apollo';
import gql from 'graphql-tag';
import {
// itemActions,
// Notification,
// notificationActions,
+6 -3
View File
@@ -1,11 +1,14 @@
import {createStore, applyMiddleware, compose} from 'redux';
import {createStore, applyMiddleware, compose, combineReducers} from 'redux';
import thunk from 'redux-thunk';
import mainReducer from './reducers';
import {client} from './client';
export default createStore(
client.reducer(),
mainReducer,
combineReducers({
...mainReducer,
apollo: client.reducer(),
}),
{}, // Initial State. We need to set this
compose(
window.devToolsExtension && window.devToolsExtension(),
applyMiddleware(thunk)