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 homePageReducer from "./reducers/homePageSlice"
|
7
|
import noteViewReducer from "./reducers/notesSlice"
|
8
|
|
9
|
const store = configureStore({
|
10
|
reducer: {
|
11
|
user: userReducer,
|
12
|
itemViewState: itemReducer,
|
13
|
noteViewState: noteViewReducer,
|
14
|
searchForm: searchFormReducer,
|
15
|
listView: listViewReducer,
|
16
|
homePage: homePageReducer,
|
17
|
},
|
18
|
})
|
19
|
|
20
|
export default store
|
21
|
export type RootState = ReturnType<typeof store.getState>
|
22
|
export type AppStore = typeof store
|
23
|
export type AppDispatch = typeof store.dispatch
|