1 |
930b05fd
|
Schwobik
|
import { configureStore } from "@reduxjs/toolkit"
|
2 |
|
|
import userReducer from "./reducers/userSlice"
|
3 |
97deff21
|
Fantič
|
import itemReducer from "./reducers/itemSlice"
|
4 |
930b05fd
|
Schwobik
|
|
5 |
5ed9692c
|
Schwobik
|
const store = configureStore({
|
6 |
930b05fd
|
Schwobik
|
reducer: {
|
7 |
|
|
user: userReducer,
|
8 |
97deff21
|
Fantič
|
item: itemReducer
|
9 |
930b05fd
|
Schwobik
|
},
|
10 |
5ed9692c
|
Schwobik
|
})
|
11 |
|
|
|
12 |
|
|
export default store
|
13 |
|
|
export type RootState = ReturnType<typeof store.getState>
|
14 |
|
|
export type AppStore = typeof store
|
15 |
|
|
export type AppDispatch = typeof store.dispatch
|