I'm using NgRx Store in my app.
Home.html
<list-objects
[array]="array| async"
(Edit)="Edit($event)"
(Delete)="Delete($event)"
></list-objects>
Home.ts
export class HomePage {
public array: Observable<itm[]>;
constructor(){
this.array= this.store.select(state => state.array);
this.array.subscribe((a) => {
console.log(a); //VALUES OK
}
}
Edit(event){
this.store.dispatch(this.actions.updateItem(event.item));
}
}
When I edit an item of array, async pipe does not update the view but the values in "array" objects are corrects (console.log inside the subscribe shows the updated value). When I click somewhere in the DOM (open modal, click buttons...), view updates with new values.
I log also in the child component "ngOnChanges" and it doesn't fire with new value.
this.store? A service?this.storewithout its being initialised? Could you post more complete/representative code?