Files
morbalint 69daf8ccae refactor to use redux WIP
just pushing to save data
2024-04-16 22:05:51 +02:00

19 lines
596 B
TypeScript

import {configureStore} from "@reduxjs/toolkit"
import userReducer from './shared/domain-models/userSlice'
import character2eReducer from './second-edition/domain-models/characterSlice';
const store = configureStore({
reducer: {
user: userReducer,
character2E: character2eReducer,
},
});
// Infer the `RootState` and `AppDispatch` types from the store itself
export type RootState = ReturnType<typeof store.getState>
// Inferred type: {posts: PostsState, comments: CommentsState, users: UsersState}
export type AppDispatch = typeof store.dispatch
export default store