Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { combineReducers } from '@ngrx/store';
- import {
- userAddressesReducer,
- UserAddressesState,
- initialUserAddressesState
- } from './user-addresses.reducer';
- import {
- userProfileReducer,
- UserProfileState,
- initialUserProfileState
- } from './user-profile.reducer';
- export interface UserState {
- addresses: UserAddressesState;
- profile: UserProfileState;
- }
- export const initialUserState: UserState = {
- addresses: initialUserAddressesState,
- profile: initialUserProfileState
- };
- export const userReducer = combineReducers(
- {
- addresses: userAddressesReducer,
- profile: userProfileReducer
- },
- initialUserState
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement