voxxrin / voxxrin3

GNU Affero General Public License v3.0
9 stars 2 forks source link

Take care of the infamous white screen #56

Closed fcamblor closed 2 months ago

fcamblor commented 9 months ago

This was raised during Devoxx event, but when having a flacky connection, it looks like app startup can sometimes be waiting a long time with a white screen.

This seems to be due to the signInAnonymously() called during startup which is blocking app startup if firebase is not able to resolve anonymous user at startup.

I tried resolving early the promise to see if starting the app without any signed in user could be problematic or not, and how the app would behave if it was the case. I found some really weird behaviour coming from Firebase...

But I assume we should :

This will be far better than the infamous white screen :-)

Vidéo demonstrating my findings : https://drive.google.com/file/d/1xigjcO3Y9OES7mN9wLka-bXo6th2Y06J/view?usp=sharing

The infamous white screen™ is a reference to @xhanin's talk at Devoxx :-)