jarle / arkett

A minimalist note taking app that syncs to the cloud 📝
http://arkett.vercel.app
MIT License
1 stars 0 forks source link

synchronize content from cloud/localstorage #2

Open jarle opened 2 years ago

jarle commented 2 years ago

when writing, compare content to cloud content (utc timestamp?)

"merge" content somehow, accept newest

write -> localStorage -> cloud -> merge(localstorage) -> display

jarle commented 2 years ago

useStickyState is bugged too, should be fixed and standardized between all possible remote changes.

jarle commented 2 years ago

possible solution: generate unique key for each push, check if key exists before accepting remote change.

jarle commented 2 years ago

Should also support offline-mode, pwa etc