mirror of
https://github.com/magnum-opus-tender-hack/frontend.git
synced 2024-11-22 16:26:35 +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
|