I want to update the todo item optimistically. I have tried in the following approach. That means before the Api call is finished, I want to see the updated item on UI.