Packages

Provides a web user interface for the Tracy function tracer.

Current section

Files

Jump to
tracy_web assets src store.js
Raw

assets/src/store.js

import { createStore, combineReducers, applyMiddleware, compose } from 'redux'
import { routerReducer, routerMiddleware } from 'react-router-redux'
import { browserHistory } from 'react-router'
import createSagaMiddleware from 'redux-saga'
import reducers from './reducers'
import rootSaga from './sagas'
const sagaMiddleware = createSagaMiddleware()
const store = createStore(
combineReducers({
...reducers,
routing: routerReducer
}),
{},
compose(
applyMiddleware(
sagaMiddleware,
routerMiddleware(browserHistory)
),
window.__REDUX_DEVTOOLS_EXTENSION__ ? window.__REDUX_DEVTOOLS_EXTENSION__() : f => f
)
)
sagaMiddleware.run(rootSaga)
export default store