Optimistic updates with rollback
Apply edits to the UI immediately while the server request is in flight. If the request fails, roll back automatically to the last confirmed value, with a clear notice. This gives a fast UX without losing consistency.
Planned. This page shows the specification from issue #195. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
Grid with a mock server whose failure rate and latency are configurable.
Expected behavior
In optimistic mode the cells show a syncing indicator. On failure, auto mode reverts the value and shows a notice. Manual mode keeps the value, marks it unsynced and offers Retry or Revert.
Planned API surface
dataSource.updateoptimisticrowSyncStatesaveFailedrollbackRow()confirmedValueAcceptance criteria
- Rollback restores the last server-confirmed value, not the original page-load value. (pending)
- Overlapping edits on the same cell are queued in order. (pending)
- rowSyncState is one of pending/synced/failed. (pending)
- Rollback is recorded in history as a non-undoable system entry. (pending)