Kathank Raithatha describes how a React Native notes demo saves edits to a device database and later syncs them to Turso in Building an offline-first React Native app with Turso Sync, Measure.sh and Claude Code. The Android emulator walkthrough follows an offline edit that survived a restart and later met a newer revision from another device.
A saved edit and a synced edit are different states
The demo saves to a local SQLite database. That lets the editor acknowledge a write before a usable connection exists. The sync code pushes local changes and pulls remote changes when connectivity returns. In one walkthrough the author force-quit the app after saving in airplane mode. After reopening it, the edit was still present and the interface still showed a pending sync. Those observations answer separate questions about persistence and delivery.
The difference matters for support. A report that a teammate could not see a saved edit could describe a pending upload, an interrupted push or a conflict. The demo records a local-save event, connectivity changes and the phases of sync in a session timeline. That sequence gives the developer somewhere to start even when the app never crashes. The article describes collecting revision identifiers and timings in the custom events without including the note text.
A revision check can catch a conflict before a push
The first offline edit remembers its starting revision. Before pushing, the app compares that value with the cloud copy. In the walkthrough the phone started from revision six while the other device advanced the cloud copy to seven. The check stopped the push and the app offered the user both versions. This check sits in the app code, above Turso Sync's last-push-wins behavior.
The comparison and push are separate operations. If a third client writes after the check and before the push, the comparison cannot account for that new write. A two-device test can verify that the app displays the known conflict. A separate test that inserts another update into that interval would probe the remaining race. Keep that test distinct from killing and reopening the app, which checks whether the pending edit survives locally.