-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(stark-all): remove
ngrx-store-freeze
dependency thanks to `@ng…
…rx/store` 8.x upgrade BREAKING CHANGE: Remove `ngrx-store-freeze` dependency in favor of new built-in runtime checks in `@ngrx/store@8.x`. Adapt code as follows: ```ts // Before import { storeFreeze } from "ngrx-store-freeze"; //... export const metaReducers: MetaReducer<State>[] = ENV === "development" ? [logger, storeFreeze] : []; @NgModule({ imports: [ CommonModule, StoreModule.forRoot(reducer, { metaReducers: metaReducers }), ] }) export class AppModule {} // After export const metaReducers: MetaReducer<State>[] = ENV === "development" ? [logger] : []; @NgModule({ imports: [ CommonModule, StoreModule.forRoot(rootReducer, { metaReducers: metaReducers, runtimeChecks: { strictStateImmutability: true, strictActionImmutability: true } }), ] }) export class AppModule {} ``` See: https://ngrx.io/guide/migration/v8#deprecation-of-ngrx-store-freeze
- Loading branch information
1 parent
7dd7c09
commit 4af3e25
Showing
5 changed files
with
12 additions
and
16 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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