Optimistic List
This example isolates the optimistic overlay model without mixing it with unrelated concerns.
- one list is authoritative
- one list is the rendered optimistic view
useOptimistic(...)owns the temporary queue and reset path
What To Notice
- the optimistic layer is separate from authoritative state instead of mutating it in place
- the reset path is part of the same primitive
- this is the sort of state choreography that benefits from a dedicated authored convention