Projekt

Obecné

Profil

Stáhnout (889 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 c2c8470e Fantič
import planViewReducer from "./reducers/planSlice"
9 930b05fd Schwobik
10 5ed9692c Schwobik
const store = configureStore({
11 930b05fd Schwobik
    reducer: {
12
        user: userReducer,
13 21c11471 Michal Schwob
        itemViewState: itemReducer,
14 c2c8470e Fantič
        planViewState: planViewReducer,
15 bb690a9a Fantič
        noteViewState: noteViewReducer,
16 9c55d3bb Schwobik
        searchForm: searchFormReducer,
17
        listView: listViewReducer,
18 4da7b143 Schwobik
        homePage: homePageReducer,
19 930b05fd Schwobik
    },
20 5ed9692c Schwobik
})
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