My coins app is offline-first (WIP). I need to be able to show to my users which new entries are not yet sync’ed. E.g.:
User is online and sync’s everything.
User goes offline.
User adds new entry.
App shows entry “grayed out”.
User goes online.
App syncs entry and shows it as sync’ed – just like all the others.
How would I go about implementing this?
In the API Docs there’s a WireClient “change” event, but it is stated: Never fired for some reason # TODO create issue and fix or remove.
I don’t believe there’s an easy way to do it nowadays, so I ask you: If I were about to implement this in rs.js itself, how (where) do you suggest doing it?
Maybe it would make sense to pass a callback function for synced changes to the store/remove methods of the BaseClient. Not sure. Anyone else has any ideas?
Now, there must have been a reason for this. It’s hard for me to understand what happened. Perhaps someone who’s been longer on the project can give me (us) a hint?