SHARE
TWEET

Untitled

a guest Aug 25th, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import { combineReducers } from '@ngrx/store';
  2.  
  3. import {
  4.   userAddressesReducer,
  5.   UserAddressesState,
  6.   initialUserAddressesState
  7. } from './user-addresses.reducer';
  8. import {
  9.   userProfileReducer,
  10.   UserProfileState,
  11.   initialUserProfileState
  12. } from './user-profile.reducer';
  13.  
  14. export interface UserState {
  15.   addresses: UserAddressesState;
  16.   profile: UserProfileState;
  17. }
  18.  
  19. export const initialUserState: UserState = {
  20.   addresses: initialUserAddressesState,
  21.   profile: initialUserProfileState
  22. };
  23.  
  24. export const userReducer = combineReducers(
  25.   {
  26.     addresses: userAddressesReducer,
  27.     profile: userProfileReducer
  28.   },
  29.   initialUserState
  30. );
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top