aswi2023one-team-to-rule-them-all-gitlab/src/stores/store.ts @ master
1 | 930b05fd | Schwobik | import { configureStore } from "@reduxjs/toolkit" |
---|---|---|---|
2 | import userReducer from "./reducers/userSlice" |
||
3 | |||
4 | 5ed9692c | Schwobik | const store = configureStore({ |
5 | 930b05fd | Schwobik | reducer: { |
6 | user: userReducer, |
||
7 | },
|
||
8 | 5ed9692c | Schwobik | })
|
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 |