If I have an observableArray and update one if the items using AJAX PUT
(or PATCH
) to a WebAPI method, should I either
- Just leave it at that assuming there are no errors.
- Send back the updated entity with the response and update the item
- Perform a
GET
request after thePUT
and update the entire array again
If I don't bring back the entity and have a foreign key, I have to go to another knockout array to get the details, however, if I bring back data from the WebAPI service, I do this on the server.
I'll add some code / a fiddle and update the question if this doesn't make sense.