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