5 ms·
Could you please share some of your experience/plans regarding implementing cross-device sync? eg: * Which db is the source of truth? * How will conflicts fr
by mmmkkaaayy 6y ago
Could you please share some of your experience/plans regarding implementing cross-device sync?
eg:
* Which db is the source of truth?
* How will conflicts from offline editing be handled?
* Will you be able to see edits made in realtime across the devices?
- tangjeff0 6y ago* Currently `index.transit` is the source of truth. When a user sees new changes, their current db is saved, and they have the option of opening the new one or continuing to edit the current version. The entire history of the db is saved right now (`{timestamp}-username.index.transit.bkp`) while we work on better conflict resolution and merging. * Don't have conflict resolution yet for offline editing. * We plan to make a websocket server for some the real-time UX.