### File

`src/app/product/reducers/product-state.ts`

### Properties

productEntities
`productEntities: `Map<number, Product>``
Type : `Map<number, Product>`
Defined in src/app/product/reducers/product-state.ts:16

productIds
`productIds: `List<number>``
Type : `List<number>`
Defined in src/app/product/reducers/product-state.ts:15

selectedProduct
`selectedProduct: `Product``
Type : `Product`
Defined in src/app/product/reducers/product-state.ts:18

selectedProductId
`selectedProductId: `number``
Type : `number`
Defined in src/app/product/reducers/product-state.ts:17

taxonomies
`taxonomies: `List<Taxonomy>``
Type : `List<Taxonomy>`
Defined in src/app/product/reducers/product-state.ts:19

    import { Taxonomy } from './../../core/models/taxonomy';
    import { Taxon } from './../../core/models/taxon';
    /**
     * Read more about Immutable Records here
     * 1. https://coderwall.com/p/vxk_tg/using-immutable-js-in-typescript
     * 2. http://untangled.io/immutable-js-the-foolproof-guide-to-creating-lists/
     * 3. https://blog.jscrambler.com/immutable-data-immutable-js/
     * 4. https://medium.com/azendoo-team/immutable-record-react-redux-99f389ed676#.91s1g124s
     */

    import { Product } from './../../core/models/product';
    import { Map, Record, List } from 'immutable';

    export interface ProductState extends Map<string, any> {
      productIds: List<number>;
      productEntities: Map<number, Product>;
      selectedProductId: number;
      selectedProduct: Product;
      taxonomies: List<Taxonomy>;
    }

    export const ProductStateRecord = Record({
      productIds: List([]),
      productEntities: Map({}),
      selectedProductId: null,
      selectedProduct: Map({}),
      taxonomies: List([])
    });

# results matching ""

# No results matching ""