Projekt

Obecné

Profil

Stáhnout (533 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1
import { configureStore } from "@reduxjs/toolkit"
2
import userReducer from "./reducers/userSlice"
3
import searchFormReducer from "./reducers/searchFormSlice"
4
import listViewReducer from "./reducers/listViewSlice"
5

    
6
const store = configureStore({
7
    reducer: {
8
        user: userReducer,
9
        searchForm: searchFormReducer,
10
        listView: listViewReducer,
11
    },
12
})
13

    
14
export default store
15
export type RootState = ReturnType<typeof store.getState>
16
export type AppStore = typeof store
17
export type AppDispatch = typeof store.dispatch
    (1-1/1)