Projekt

Obecné

Profil

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