jeudi 22 décembre 2022

[Redux/Ngrx][Design-pattern][Good practise] Do a get after each update/delete?

I'm faced with a problem for which I couldn't find documentation on good practise.

I have a list of items which can be updated or deleted and I'm using a store to manage it.

When updating/deleting an item, should I remove it from the store's list on backend sucessfull response, or should I do a full get to populate my store with the actualised list ?

If you have some pertinents links for me I'm all ears :)

Thanks !

Aucun commentaire:

Enregistrer un commentaire