aswi2023one-team-to-rule-them-all-gitlab/src/stores/store.ts @ 3a4bf532
1 |
import { configureStore } from "@reduxjs/toolkit" |
---|---|
2 |
import userReducer from "./reducers/userSlice" |
3 |
import itemReducer from "./reducers/itemSlice" |
4 |
|
5 |
const store = configureStore({ |
6 |
reducer: { |
7 |
user: userReducer, |
8 |
itemViewState: itemReducer |
9 |
},
|
10 |
})
|
11 |
|
12 |
export default store |
13 |
export type RootState = ReturnType<typeof store.getState> |
14 |
export type AppStore = typeof store |
15 |
export type AppDispatch = typeof store.dispatch |