|
import { configureStore } from '@reduxjs/toolkit'; |
|
import currentPostReducer from './post/currentPost'; |
|
import postDataSliceReducer from './post/postData'; |
|
import transformedDataReducer from './data/transformedData'; |
|
import profileDataReducer from './user/profileData'; |
|
import currentCommentReducer from './comment/currentComments'; |
|
import scrollDiscussionReducer from './scrollDiscussion'; |
|
import loginAlertReducer from './loginAlert'; |
|
|
|
const store = configureStore({ |
|
middleware: (getDefaultMiddleware) => |
|
getDefaultMiddleware({ |
|
serializableCheck: false, |
|
}), |
|
|
|
reducer: { |
|
transformedData: transformedDataReducer, |
|
postData: postDataSliceReducer, |
|
currentPost: currentPostReducer, |
|
profileData: profileDataReducer, |
|
currentComments: currentCommentReducer, |
|
scrollDiscussion: scrollDiscussionReducer, |
|
loginAlert: loginAlertReducer, |
|
}, |
|
}); |
|
|
|
export default store; |
|
|