add redux and user slice
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import { configureStore } from "@reduxjs/toolkit"
|
||||
import userReducer from './shared/domain-models/userSlice'
|
||||
|
||||
const store = configureStore({
|
||||
reducer: {
|
||||
user: userReducer
|
||||
},
|
||||
});
|
||||
|
||||
// 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
|
||||
Reference in New Issue
Block a user