Rev 6497 |
Ir a la última revisión |
|
Ultima modificación |
Ver Log
|
Rev |
Autor |
Línea Nro. |
Línea |
6493 |
stevensc |
1 |
import { createStore, applyMiddleware, compose } from 'redux'
|
|
|
2 |
import thunk from 'redux-thunk'
|
|
|
3 |
import { rootReducer } from './root-reducer'
|
|
|
4 |
|
|
|
5 |
const middlewares = [thunk]
|
|
|
6 |
|
|
|
7 |
const composeEnhancers =
|
|
|
8 |
typeof window === 'object' && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__
|
|
|
9 |
? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({
|
|
|
10 |
trace: true,
|
|
|
11 |
traceLimit: 25,
|
|
|
12 |
})
|
|
|
13 |
: compose
|
|
|
14 |
|
|
|
15 |
const enhancer = composeEnhancers(applyMiddleware(...middlewares))
|
|
|
16 |
|
|
|
17 |
export const store = createStore(rootReducer, enhancer)
|