16 lines
397 B
TypeScript
16 lines
397 B
TypeScript
import { configureStore } from "@reduxjs/toolkit";
|
|
import { reducer as LoginReducer } from "State/Login";
|
|
import { reducer as CacheReducer } from "State/Cache";
|
|
|
|
const store = configureStore({
|
|
reducer: {
|
|
login: LoginReducer,
|
|
cache: CacheReducer,
|
|
},
|
|
});
|
|
|
|
export type RootState = ReturnType<typeof store.getState>;
|
|
export type AppDispatch = typeof store.dispatch;
|
|
|
|
export default store;
|