1 |
930b05fd
|
Schwobik
|
import { configureStore } from "@reduxjs/toolkit"
|
2 |
|
|
import userReducer from "./reducers/userSlice"
|
3 |
9c55d3bb
|
Schwobik
|
import searchFormReducer from "./reducers/searchFormSlice"
|
4 |
|
|
import listViewReducer from "./reducers/listViewSlice"
|
5 |
930b05fd
|
Schwobik
|
|
6 |
5ed9692c
|
Schwobik
|
const store = configureStore({
|
7 |
930b05fd
|
Schwobik
|
reducer: {
|
8 |
|
|
user: userReducer,
|
9 |
9c55d3bb
|
Schwobik
|
searchForm: searchFormReducer,
|
10 |
|
|
listView: listViewReducer,
|
11 |
930b05fd
|
Schwobik
|
},
|
12 |
5ed9692c
|
Schwobik
|
})
|
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
|