momentumfrc / attendance-manager

Keep track of the attendence of our team members by allowing mentors to check students in and out.
0 stars 0 forks source link

Server errors can cause desync of cached data #44

Open lost1227 opened 1 year ago

lost1227 commented 1 year ago

When the server reports an error, we open the error screen and display the error to the user. However, we should also either invalidate all cached data, or just force a reload of the page, since the error may have created a desync and invalidated the cache.

For example, if an attempt to check a student in fails on the server side, the client could still assume it succeeded and erroneously update the student's last_check_in. If the server reports an error, we should either invalidate the cache or just reload the whole page.