Last active
April 25, 2023 17:55
-
-
Save whisher/1e6822400451938fdc78ed926ef2f8d2 to your computer and use it in GitHub Desktop.
Ngrx ActionReducerMap example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ActionReducerMap } from '@ngrx/store'; | |
import { | |
userAddressesReducer, | |
UserAddressesState | |
} from './user-addresses.reducer'; | |
import { userProfileReducer, UserProfileState } from './user-profile.reducer'; | |
export interface UserState { | |
addresses: UserAddressesState; | |
profile: UserProfileState; | |
} | |
export const userReducer: ActionReducerMap<UserState> = { | |
addresses: userAddressesReducer, | |
profile: userProfileReducer | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment