Projekt

Obecné

Profil

Stáhnout (708 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
import noteViewReducer from "./reducers/notesSlice"
7

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