Actions and modern forms
Optimistic reconciliation
Update authoritative state from the confirmed response, rather than treating predicted data as permanent.
Formal Syntax & Structure
react syntaxreact
startTransition(() => setItems(old => confirmRepair(old, result)))Working Example
Example Snippetreact
startTransition(() => setItems(old => confirmRepair(old, result)))