Spaces:
Paused
Paused
File size: 687 Bytes
3c3f089 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
import { configureStore } from "@reduxjs/toolkit";
import authSlice from "./features/authSlice";
import editorReducer from "./features/editorSlice";
import compilerReducer from "./features/compilerSlice";
import modalReducer from "./features/modalSlice";
import themeReducer from "./features/themeSlice";
export const store = configureStore({
reducer: {
auth: authSlice,
editor: editorReducer,
compiler: compilerReducer,
modal: modalReducer,
theme: themeReducer,
},
});
export type RootState = ReturnType<typeof store.getState>;
// Inferred type: {posts: PostsState, comments: CommentsState, users: UsersState}
export type AppDispatch = typeof store.dispatch;
|