State Management · Middle · Question 73 of 75

What is the difference between optimistic and pessimistic updates?

Explanation

Optimistic UI feels instant for likely-successful actions (likes, toggles). Use pessimistic updates for payments and anything hard to undo.

Further reading

Problem with a question

State Management · Middle · question 73

Test yourself

Take the State Management · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz