Example article.
The subway, the plane, the countryside: the network always drops at the wrong moment. An offline-first app writes to its local database, then sends when it can.
Three principles
- The screen reads the local database, never the network.
- Every change is a dated, replayable mutation.
- The server merges; it doesn't blindly pick a winner.
What it costs
A bit more code up front, far fewer bugs afterwards.