mirror of
https://github.com/wassname/talk.git
synced 2026-07-16 11:22:16 +08:00
23 lines
473 B
JavaScript
23 lines
473 B
JavaScript
import {createStore, combineReducers, applyMiddleware, compose} from 'redux';
|
|
import thunk from 'redux-thunk';
|
|
import authReducer from './reducers/auth';
|
|
import {client} from './client';
|
|
|
|
export default createStore(
|
|
combineReducers({
|
|
auth: authReducer,
|
|
apollo: client.reducer()
|
|
}),
|
|
{
|
|
apollo: {
|
|
data: {
|
|
loading: true,
|
|
}
|
|
}
|
|
},
|
|
compose(
|
|
applyMiddleware(thunk),
|
|
window.devToolsExtension && window.devToolsExtension()
|
|
)
|
|
);
|