useOptimistic lets an interface show an anticipated result immediately while an async action is still pending.