From b172e30e5b71391b146c8679101c43d8d8622a81 Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Thu, 19 Jan 2017 11:30:30 -0300 Subject: [PATCH] By doing this we can refactor one by one and still having a working app --- client/coral-embed-stream/src/CommentStream.js | 1 - client/coral-framework/store.js | 9 ++++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/client/coral-embed-stream/src/CommentStream.js b/client/coral-embed-stream/src/CommentStream.js index e24471039..5ad82f1ad 100644 --- a/client/coral-embed-stream/src/CommentStream.js +++ b/client/coral-embed-stream/src/CommentStream.js @@ -4,7 +4,6 @@ import {graphql} from 'react-apollo'; import gql from 'graphql-tag'; import { - // itemActions, // Notification, // notificationActions, diff --git a/client/coral-framework/store.js b/client/coral-framework/store.js index cad05505c..1f3b011ef 100644 --- a/client/coral-framework/store.js +++ b/client/coral-framework/store.js @@ -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)