Skip to content

Commit

Permalink
feat(core): add ngrx store freeze lib for development mode
Browse files Browse the repository at this point in the history
  • Loading branch information
tomastrajan committed Mar 17, 2018
1 parent f4eb2cc commit 80a81fe
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
15 changes: 15 additions & 0 deletions package-lock.json
100755 → 100644

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"karma-jasmine-html-reporter": "^0.2.2",
"karma-phantomjs-launcher": "^1.0.4",
"karma-spec-reporter": "0.0.31",
"ngrx-store-freeze": "^0.2.1",
"prettier": "^1.7.4",
"protractor": "~5.3.0",
"standard-version": "^4.2.0",
Expand Down
3 changes: 2 additions & 1 deletion src/app/core/core.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { CommonModule } from '@angular/common';
import { HttpClientModule } from '@angular/common/http';
import { MetaReducer, StoreModule } from '@ngrx/store';
import { EffectsModule } from '@ngrx/effects';
import { storeFreeze } from 'ngrx-store-freeze';

import { environment } from '@env/environment';

Expand All @@ -16,7 +17,7 @@ import { AuthGuardService } from './auth/auth-guard.service';
export const metaReducers: MetaReducer<any>[] = [initStateFromLocalStorage];

if (!environment.production) {
metaReducers.unshift(debug);
metaReducers.unshift(debug, storeFreeze);
}

@NgModule({
Expand Down

0 comments on commit 80a81fe

Please sign in to comment.