16 lines
393 B
TypeScript
16 lines
393 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,
|
|
},
|
|
});
|
|
};
|
|
|
|
// Create the store instance
|
|
export const store = makeStore();
|