when logging in/out, there is a small window where the server's session state and the client-side state and view subscriptions will not exactly align and some view subscription updates (because mtgcoll.client.auth/user-profile was updated) will get treated as unauthorized. this change is admittedly somewhat quick/hacky, but basically the idea is to track the sente connection state (which is true when sente is both connected and a handshake event has been received) in a reagent atom. if false, we hide the entire ui and show a "connecting ..." message. not super pretty, but it's only shown to the user briefly and it solves the problem. i'll need to revisit this at some point and wrap it up in some library code or something somewhere to make the whole method prettier to use in the future |
||
---|---|---|
env/dev/src | ||
resources | ||
src/mtgcoll | ||
.gitignore | ||
LICENSE | ||
project.clj | ||
README.md |
MTG Web Collection
Web application to maintain a searchable database of cards, including (optional) card images and prices and to record cards contained in a personal collection.
This project is a work in progress and is not ready for actual use quite yet.