Repro Steps:
Just load events and resources with async pipe directly from Observable selector that takes state from NGXS store.
With drag and drop
Thanks
Drop event in main component makes rest call and after getting response from backend updates the store with new data.
scheduler.listeners = {
eventDrop: ({ source, eventRecords, isCopy, context }) => {
// do the rest call and update the event in the db, and than update the store
this.store.dispatch(new PatchSchedulerTaskAction(task));
}
}
My guess is that setting new state in the store is replacing complete array with new reference. Patching arrays ( partialy updating only one piece of it) is currently not supported.
Unfortunately we do not have any demo that would use NGXS Store to which we could apply you code directly. Is there any chance to provide us with a complete runnable showcase that we can npm i && npm start, investigate and debug?