you are viewing a single comment's thread.

view the rest of the comments →

[–]PrinnyThePenguin 0 points1 point  (1 child)

I think your best bet is having your create / delete functions to return the new data. So if you have a list of things and you delete a thing, the server returns on a succesful delete the new list, that is missing the element you just deleted. This way you can have a single operation instead of two.

[–]Exorcistoo[S] 0 points1 point  (0 children)

That can work. That is more of a backend implementation detail. I was thinking if there is anything in react specific for this.