-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor minimal option #2258
refactor minimal option #2258
Conversation
cc: @brandonroberts |
Preview docs changes for 54b14c0 at https://previews.ngrx.io/pr2258-54b14c0/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you have changed the wrong schematic.
We have generate schematics (ng generate store
) and ng-add schematics (ng add @ngrx/store
), this change should only affect the ng-add schematics.
These schematics are located at https://github.com/ngrx/platform/blob/master/modules/store/schematics/ng-add/schema.json#L41
f59c90e
to
2dfc95a
Compare
@Jefiozie could you also add a breaking change note to the PR please, you can find a template in CONTRIBUTING.MD |
Closes ngrx#2250 BREAKING CHANGES: With this change by default the minimal setup for `ngrx/store` will be generated. BEFORE: ``` @NgModule({ declarations: [ AppComponent, ], imports: [ BrowserModule, StoreModule.forRoot(reducers, { metaReducers, runtimeChecks: { strictStateImmutability: true, strictActionImmutability: true } }), ..... ], providers: [], bootstrap: [AppComponent] }) ``` AFTER: ``` @NgModule({ declarations: [ AppComponent, ], imports: [ BrowserModule, StoreModule.forRoot({}) .... ], providers: [], bootstrap: [AppComponent] }) ```
2dfc95a
to
54b14c0
Compare
Added the breaking change request. |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
It will introduce a breaking change based on the flag option that has been changed.
What is the current behavior?
By default the minimal flag is false.
Closes #2250
What is the new behavior?
By default the minimal flag is true
Does this PR introduce a breaking change?
Other information