Projekt

Obecné

Profil

Stáhnout (889 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1
import { configureStore } from "@reduxjs/toolkit"
2
import userReducer from "./reducers/userSlice"
3
import itemReducer from "./reducers/itemSlice"
4
import searchFormReducer from "./reducers/searchFormSlice"
5
import listViewReducer from "./reducers/listViewSlice"
6
import homePageReducer from "./reducers/homePageSlice"
7
import noteViewReducer from "./reducers/notesSlice"
8
import planViewReducer from "./reducers/planSlice"
9

    
10
const store = configureStore({
11
    reducer: {
12
        user: userReducer,
13
        itemViewState: itemReducer,
14
        planViewState: planViewReducer,
15
        noteViewState: noteViewReducer,
16
        searchForm: searchFormReducer,
17
        listView: listViewReducer,
18
        homePage: homePageReducer,
19
    },
20
})
21

    
22
export default store
23
export type RootState = ReturnType<typeof store.getState>
24
export type AppStore = typeof store
25
export type AppDispatch = typeof store.dispatch
    (1-1/1)