angularngrxngrx-storeangular-ngrx-datangrx-data

How to update Store with NgRX Data?


My component structure

enter image description here

In case.component im caching the case data in Case entity of store then i fetch that from child components (case-actions, case-activity... etc).

But when i update remotely the Case from any child component I dont know how to refresh the cached data in parent component (case.component) to replicate that on child components again.

Im trying to do with best practices.


Solution

  • Best practice:

    Quick fix that I don't recommend: