Offline edit silently overwrites teammate changes on reconnect
Naive offline mutation replay without causal vector clocks, CRDTs, or cross-tab Web Locks clobbers concurrent edits once connectivity returns.
IndexedDB VersionChange / Last-Write-Wins PUT overwrites server revision without conflict detection or CRDT mergeCausal Chain of Browser Mechanisms
Ordered from trigger to root invariant. Open any mechanism to inspect its internals or reproduce the behavior in an interactive lab.
Transactional client-side B-tree object store whose transactions auto-commit on microtask drain and whose storage limits depend on origin-wide disk quotas.
Persists every edit locally in IndexedDB/OPFS at 0 ms network wait and uses Conflict-free Replicated Data Types (CRDTs) so offline peers merge deterministically.
Origin-scoped pub/sub messaging and async mutual-exclusion locks coordinated by the browser process across tabs, iframes, and workers.
Prevents duplicate charges and out-of-order server overwrites on flaky networks by persisting mutations in an IndexedDB FIFO outbox with UUID idempotency keys.