Projekt

Obecné

Profil

Stáhnout (798 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1 930b05fd Schwobik
import { configureStore } from "@reduxjs/toolkit"
2
import userReducer from "./reducers/userSlice"
3 97deff21 Fantič
import itemReducer from "./reducers/itemSlice"
4 9c55d3bb Schwobik
import searchFormReducer from "./reducers/searchFormSlice"
5
import listViewReducer from "./reducers/listViewSlice"
6 4da7b143 Schwobik
import homePageReducer from "./reducers/homePageSlice"
7 bb690a9a Fantič
import noteViewReducer from "./reducers/notesSlice"
8 930b05fd Schwobik
9 5ed9692c Schwobik
const store = configureStore({
10 930b05fd Schwobik
    reducer: {
11
        user: userReducer,
12 21c11471 Michal Schwob
        itemViewState: itemReducer,
13 bb690a9a Fantič
        noteViewState: noteViewReducer,
14 9c55d3bb Schwobik
        searchForm: searchFormReducer,
15
        listView: listViewReducer,
16 4da7b143 Schwobik
        homePage: homePageReducer,
17 930b05fd Schwobik
    },
18 5ed9692c Schwobik
})
19
20
export default store
21
export type RootState = ReturnType<typeof store.getState>
22
export type AppStore = typeof store
23
export type AppDispatch = typeof store.dispatch