mirror of
https://github.com/lemeow125/StudE-Frontend.git
synced 2025-01-31 21:18:09 +08:00
16 lines
478 B
TypeScript
16 lines
478 B
TypeScript
import { configureStore } from "@reduxjs/toolkit";
|
|
import StatusReducer from "../slices/StatusSlice/StatusSlice";
|
|
import UserReducer from "../slices/UserSlice/UserSlice";
|
|
|
|
const store = configureStore({
|
|
reducer: {
|
|
status: StatusReducer,
|
|
user: UserReducer,
|
|
},
|
|
});
|
|
|
|
export default store;
|
|
|
|
// Infer the `RootState` and `AppDispatch` types from the store itself
|
|
export type RootState = ReturnType<typeof store.getState>;
|
|
export type AppDispatch = typeof store.dispatch;
|