mirror of
https://github.com/magnum-opus-tender-hack/frontend.git
synced 2024-11-24 09:13:43 +03:00
17 lines
468 B
TypeScript
17 lines
468 B
TypeScript
import {configureStore} from '@reduxjs/toolkit'
|
|
import nodesInputReducer from './reducers/nodesInputReducer';
|
|
import thunk from 'redux-thunk'
|
|
|
|
|
|
const store = configureStore({reducer: nodesInputReducer, middleware: getDefaultMiddleware =>
|
|
getDefaultMiddleware({
|
|
thunk: {
|
|
extraArgument: nodesInputReducer
|
|
}
|
|
})})
|
|
|
|
export default store;
|
|
|
|
export type RootType = ReturnType<typeof store.getState>;
|
|
export type AppDispatch = typeof store.dispatch
|