Projekt

Obecné

Profil

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