graycoreio/daffodil

View on GitHub
libs/reviews/state/src/state.module.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { NgModule } from '@angular/core';
import { EffectsModule } from '@ngrx/effects';
import { StoreModule } from '@ngrx/store';

import { DaffProductStateModule } from '@daffodil/product/state';

import { DaffProductReviewCollectionEffects } from './effects/product-page-review-collection.effects';
import { DaffProductPageReviewsEffects } from './effects/product-page-reviews.effects';
import { DAFF_REVIEWS_STORE_CONFIG } from './reducers/injection-tokens/config.token';
import { DAFF_REVIEWS_REDUCERS } from './reducers/injection-tokens/reducers.token';
import { DAFF_REVIEWS_STORE_FEATURE_KEY } from './reducers/public_api';

/**
 * A module that provides the default reducers and effects for the reviews redux state.
 */
@NgModule({
  imports: [
    DaffProductStateModule,
    StoreModule.forFeature(DAFF_REVIEWS_STORE_FEATURE_KEY, DAFF_REVIEWS_REDUCERS, DAFF_REVIEWS_STORE_CONFIG),
    EffectsModule.forFeature([
      DaffProductPageReviewsEffects,
      DaffProductReviewCollectionEffects,
    ]),
  ],
})
export class DaffReviewsStateModule { }