first commit

This commit is contained in:
Jeannette Chin committed 2026-10-04 12:12:19 +01:00
commit 86ffedffca
24 files changed
+8576

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
import { configureStore } from "@reduxjs/toolkit";
import "@/lib/features/bookSlice";
import bookReducer from "./features/bookSlice";
export const makeStore = () => {
return configureStore({
reducer: { books: bookReducer },
});
};
// Infer the type of makeStore
export type AppStore = ReturnType<typeof makeStore>;
// Infer the `RootState` and `AppDispatch` types from the store itself
export type RootState = ReturnType<AppStore["getState"]>;
export type AppDispatch = AppStore["dispatch"];