Add Optimistic UI Support
We have comments functionality in our blog app. When we are adding a comment, it looks like:
As you can see, there's a loading indicator in the button while adding the comment.
But have a look at this:
Here, there's no such wait time. We can immediately view the comment. But still, there's an indicator which shows that this comment is still not saved.