mirror of
https://github.com/wassname/talk.git
synced 2026-08-13 12:40:11 +08:00
By doing this we can refactor one by one and still having a working app
This commit is contained in:
@@ -4,7 +4,6 @@ import {graphql} from 'react-apollo';
|
||||
import gql from 'graphql-tag';
|
||||
|
||||
import {
|
||||
|
||||
// itemActions,
|
||||
// Notification,
|
||||
// notificationActions,
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user