aswi2022code-of-duty-gitlab/frontend/src/features/redux/store.ts @ b30f120b
1 |
// Store that holds the state of the application
|
---|---|
2 |
|
3 |
import { combineReducers, createStore } from 'redux' |
4 |
import authReducer from '../Auth/authReducer' |
5 |
import themeReducer from '../Theme/themeReducer' |
6 |
|
7 |
const store = createStore( |
8 |
combineReducers({ auth: authReducer, theme: themeReducer }), |
9 |
{}
|
10 |
)
|
11 |
|
12 |
export default store |
13 |
|
14 |
export type AppStore = typeof store |
15 |
|
16 |
export type RootState = ReturnType<typeof store.getState> |
17 |
|
18 |
export type AppDispatch = typeof store.dispatch |