Prevent flash of footer on the account page
When loading the account page, there's a small flash of the footer before the page renders
https://user-images.githubusercontent.com/9113740/105638688-a6d42580-5e39-11eb-9987-ed75bf62638e.mp4
Hi! Could you include some steps for reproduction?
In Chrome 92 on macOS Big Sur, I tried
- Sign in to the app
- Subscribe to the Hobby Account with a Stripe test card
- Navigate to Pricing
- Navigate to Account
and could not replicate the flashing footer.
Will delete if this repo is not open to contributions - I'm new to the OS community
Maybe this is because of the client side user check + redirect?
Good eye! In account.js on line 30, unauthenticated users are redirected to /signin. Surely enough, the video shows that URL briefly:
Maybe user is briefly null in the callback of onAuthStateChanged here?
This has been fixed!