You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following along with the tutorial. Bleeding edge packages in my own environment, but the example has older packages.
Basic page works
<ng-container *ngIf="vehicleFormState$ | async as vehicleFormState">
Form works
<form novalidate [ngrxFormState]="vehicleFormState"></form>
</ng-container>
Displays Basic page works.
Does not display Form works.
I think it's a plumbing issue. This could be entirely my fault as I'm totally noobish with ngrx, but I have gone through your examples, other examples online, gobs of documentation on both ngrx and ngrx-forms, and ...
The key here, I believe, is that it never hits this function at all.
export function applicationReducer(state = initialApplicationState, action: Action): ApplicationState {
const vehicleForm = formGroupReducer(state.vehicleForm, action);
if (vehicleForm !== state.vehicleForm) {
state = { ...state, vehicleForm };
}
return state;
The text was updated successfully, but these errors were encountered:
a)
the reducer is not registered correctly in the app.module. Check out the ngrx docs, reducers are registered as key-value pairs, even with forRoot
in your stackblitz, i changed to
StoreModule.forRoot({app: applicationReducer})
b)
the selector is defined in a component that is never used HelloComponent
moving the constructor block to app.component.ts and selecting from the new app object key, should get you to where the form observable is emitting as expected
Minimal example here: https://stackblitz.com/edit/angular-irc-starter-tf8y7g?file=src/app/app.component.html
Following along with the tutorial. Bleeding edge packages in my own environment, but the example has older packages.
Displays Basic page works.
Does not display Form works.
I think it's a plumbing issue. This could be entirely my fault as I'm totally noobish with ngrx, but I have gone through your examples, other examples online, gobs of documentation on both ngrx and ngrx-forms, and ...
The key here, I believe, is that it never hits this function at all.
The text was updated successfully, but these errors were encountered: