mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2025-01-23 16:23:47 +03:00
14 lines
421 B
JavaScript
14 lines
421 B
JavaScript
|
import ReduxThunk from 'redux-thunk';
|
||
|
import { applyMiddleware, compose, createStore } from 'redux';
|
||
|
import reducers from '../reducers';
|
||
|
|
||
|
const composeEnhancers = process.env.NODE_ENV !== 'production' && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__
|
||
|
? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__
|
||
|
: compose;
|
||
|
|
||
|
const store = createStore(reducers, composeEnhancers(
|
||
|
applyMiddleware(ReduxThunk)
|
||
|
));
|
||
|
|
||
|
export default store;
|