store.js 337 Bytes
Newer Older
dungtnguyen's avatar
dungtnguyen committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
import {configureStore} from '@reduxjs/toolkit';

import authReducer from '../screens/auth/authSlice';

const rootReducer = {
  auth: authReducer,
};

const store = configureStore({
  reducer: rootReducer,
  middleware: getDefaultMiddleware =>
    getDefaultMiddleware({
      serializableCheck: false,
    }),
});
export default store;