You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
408 B
20 lines
408 B
// redux/store.ts
|
|
|
|
import { configureStore } from '@reduxjs/toolkit'
|
|
import moveReducer, { MoveState } from './reducers/moveReducer';
|
|
|
|
export type AppDispatch = typeof store.dispatch;
|
|
|
|
export type RootState = {
|
|
move: MoveState;
|
|
};
|
|
|
|
const store = configureStore({
|
|
reducer: {
|
|
move: moveReducer
|
|
},
|
|
middleware: (getDefaultMiddleware) => getDefaultMiddleware(),
|
|
});
|
|
|
|
export default store;
|