Projekt

Obecné

Profil

Stáhnout (467 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1 c7d2ced1 Václav Honzík
// 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