Projekt

Obecné

Profil

Stáhnout (708 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 bb690a9a Fantič
import noteViewReducer from "./reducers/notesSlice"
7 930b05fd Schwobik
8 5ed9692c Schwobik
const store = configureStore({
9 930b05fd Schwobik
    reducer: {
10
        user: userReducer,
11 21c11471 Michal Schwob
        itemViewState: itemReducer,
12 bb690a9a Fantič
        noteViewState: noteViewReducer,
13 9c55d3bb Schwobik
        searchForm: searchFormReducer,
14
        listView: listViewReducer,
15 930b05fd Schwobik
    },
16 5ed9692c Schwobik
})
17
18
export default store
19
export type RootState = ReturnType<typeof store.getState>
20
export type AppStore = typeof store
21
export type AppDispatch = typeof store.dispatch