18 lines
475 B
TypeScript
18 lines
475 B
TypeScript
import { configureStore } from "@reduxjs/toolkit";
|
|
import advancedSearchReducer from "./advanedSearch/advancedSearchSlice";
|
|
import authReducer from "./auth/authSlice";
|
|
|
|
export const makeStore = () => {
|
|
return configureStore({
|
|
reducer: {
|
|
advancedSearch: advancedSearchReducer,
|
|
auth: authReducer,
|
|
},
|
|
// Enable Redux DevTools
|
|
devTools: process.env.NODE_ENV !== "production",
|
|
});
|
|
};
|
|
|
|
// Create the store instance
|
|
export const store = makeStore();
|