Skip to content

Instantly share code, notes, and snippets.

@alexytiger
Last active February 18, 2020 01:53
Show Gist options
  • Save alexytiger/27c745d7756f2cffcccb4b184ab4664c to your computer and use it in GitHub Desktop.
Save alexytiger/27c745d7756f2cffcccb4b184ab4664c to your computer and use it in GitHub Desktop.
import {createSelector, createFeatureSelector, Action, combineReducers}
from '@ngrx/store';
import * as fromRoot from '../../../core/store/reducers';
import * as fromIpfs from './ipfs-product-image.reducer';
import * as fromProducts from './purchase-contract.reducer';
export interface PurchaseContractState {
ipfs: fromIpfs.State;
products: fromProducts.State;
}
export interface AppState extends fromRoot.AppState {
purchaseContract: PurchaseContractState;
}
export function reducers(state: PurchaseContractState | undefined, action: Action) {
return combineReducers({
ipfs: fromIpfs.reducer,
products: fromProducts.reducer
})(state, action);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment