Uh oh!
There was an error while loading. Please reload this page.
User data download times #7971
Unanswered
insertokname
asked this question in
Questions
Replies: 0 comments
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I considered opening an issue for this but a "question" seems more appropriate.
Whenever i access the app as a logged in user there is a 3 second loading bar stating "Downloading user data...". The ux around this is not that great honestly. I am wondering why the app isn't making use of local storage / cookies more for storing user data. There could be a fire and forget mechanism that serves stale user data from local storage while the very slow requests happen in an async manner.
From what i can gather this call to firebase init:
monkeytype/frontend/src/ts/index.ts
Lines 81 to 85 in bd34682
which always calls onAuthStateChanged -> loadUser -> getDataAndInit which seems to make the following requests:
Even though the requests seem to be made in parallel the real wait time is still about 3 seconds.
My question is: is there a tehnical reason i am overlooking for the loading screen existing? Could an approach with local storage + last fetched data be done?
All reactions