mirror of
https://github.com/lemeow125/StudE-Frontend.git
synced 2025-02-01 05:28:08 +08:00
15 lines
388 B
TypeScript
15 lines
388 B
TypeScript
|
import { configureStore } from "@reduxjs/toolkit";
|
||
|
import AuthReducer from "../slices/AuthSlice/AuthSlice";
|
||
|
|
||
|
const store = configureStore({
|
||
|
reducer: {
|
||
|
auth: AuthReducer,
|
||
|
},
|
||
|
});
|
||
|
|
||
|
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;
|