Projekt

Obecné

Profil

Stáhnout (552 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1

    
2
import { combineReducers, createStore } from 'redux'
3
import { persistStore } from 'redux-persist'
4
import userReducer from '../Auth/userReducer'
5
import themeReducer from '../Theme/themeReducer'
6

    
7
// Store holds shared state in the application
8
const store = createStore(
9
    combineReducers({ user: userReducer, theme: themeReducer }),
10
    {}
11
)
12

    
13
export default store
14
export const persistor = persistStore(store)
15
export type AppStore = typeof store
16
export type RootState = ReturnType<typeof store.getState>
17
export type AppDispatch = typeof store.dispatch
    (1-1/1)