structure
structure copied to clipboard
Cross-check data consistency by sending a server data hash
Could e.g. md5
the JSON of all notes sorted by createdAt
, mapped to objects with only _id
and updatedAt
on the server, send that along with every request for updated entities and after merging the changes the client could calculate the hash locally and notify the user if it mismatches to allow refetching