store.js 564 B

1234567891011121314151617
  1. //import getUserSocketReducer from './reducers/socketReducer'
  2. import userDataReducer from './reducers/userDataReducer';
  3. import getUserSocketReducer from './reducers/socketReducer';
  4. import messageReducer from './reducers/messageReducer';
  5. import { configureStore } from '@reduxjs/toolkit';
  6. export const store = configureStore({
  7. reducer: {userDataReducer, getUserSocketReducer, messageReducer},
  8. middleware: getDefaultMiddleware => getDefaultMiddleware({
  9. serializableCheck: false
  10. }),
  11. devTools: process.env.NODE_ENV !== 'production',
  12. })