qortal-ui/core/src/store.js

13 lines
336 B
JavaScript
Raw Normal View History

2023-11-05 14:30:07 +01:00
import {applyMiddleware, compose, createStore} from 'redux'
2023-12-08 11:23:53 +01:00
import { thunk } from 'redux-thunk'
2021-12-25 14:39:47 +01:00
2023-12-08 11:23:53 +01:00
import rootReducer from './redux/reducers.js'
2023-11-05 14:30:07 +01:00
2021-12-25 14:39:47 +01:00
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose
export const store = createStore(
2023-12-08 11:23:53 +01:00
rootReducer,
2021-12-25 14:39:47 +01:00
composeEnhancers(
applyMiddleware(thunk)
)
2023-12-08 11:23:53 +01:00
)