Projekt

Obecné

Profil

Stáhnout (616 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

    
7
const store = configureStore({
8
    reducer: {
9
        user: userReducer,
10
        itemViewState: itemReducer,
11
        searchForm: searchFormReducer,
12
        listView: listViewReducer,
13
    },
14
})
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
    (1-1/1)