1234567891011121314151617181920212223 |
- import { combineReducers } from '@reduxjs/toolkit';
- import { persistReducer } from 'redux-persist';
- import storage from 'redux-persist/lib/storage';
- import reducerContacts from '../contacts/reducer'
- import reducerControlApp from '../controlApp/reducer'
- import reducerLoading from '../loading/reducer';
- import reducerAuthorization from '../authorization/reducer';
- const authorizationPersistConfig = {
- key: 'auth',
- storage: storage,
- };
- export const rootReducer = combineReducers({
- isLoading: reducerLoading,
- contacts:reducerContacts,
- controlApp: reducerControlApp,
- authorization: persistReducer(
- authorizationPersistConfig,
- reducerAuthorization,
- ),
- });
|