Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 5307 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 5307 Rev 5753
Línea 1... Línea -...
1
// const { applyMiddleware, createStore } = Redux;
-
 
2
import { createStore, applyMiddleware, compose } from 'redux'
1
import { createStore, applyMiddleware, compose } from 'redux'
3
import logger from 'redux-logger'
-
 
4
import thunk from 'redux-thunk'
2
import thunk from 'redux-thunk'
5
import { rootReducer } from './root-reducer'
3
import { rootReducer } from './root-reducer'
Línea 6... Línea 4...
6
 
4
 
Línea 11... Línea 9...
11
/* Remove in production and change to normal createStore */
9
/* Remove in production and change to normal createStore */
12
const composeEnhancers =
10
const composeEnhancers =
13
  (window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ &&
11
  (window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ &&
14
    window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({
12
    window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({
15
      trace: true,
13
      trace: true,
16
      traceLimit: 25
14
      traceLimit: 25,
17
    })) ||
15
    })) ||
18
  compose
16
  compose
Línea 19... Línea -...
19
 
-
 
20
export const store = createStore(
-
 
21
  rootReducer,
17
 
22
  applyMiddleware(...middlewares)
-