I am fetching data from an ngrx/store I have subscribed to the data
this.store.select(somedataList)
.subscribe(myList => {
myList.propertyA = "a different value";
});
After modifying the property values upon subscription, I must update the data in the store.
this.store.dispatch(new UpdateSomeDataList(myList));
Upon calling "dispatch," the ".subscribe" triggers again and causes a never-ending loop.
Is there a way to update the data without getting stuck in an infinite loop?