mmcknett / loggr

Time logging system
https://loggr-a3f89.web.app/
0 stars 0 forks source link

Login screen flashes when refreshing log page #35

Open amythetester opened 1 year ago

amythetester commented 1 year ago

Repro steps:

  1. Go to the page where you can create new log entries
  2. Refresh the browser

Expected: Page refreshes Actual: Page refreshes, but flashes the login component before completing the rerender

mmcknett commented 1 year ago

Great find! I had attempted to implement a loading state, but I tried to base it on the current user being null. That caused the app to show "Loading..." forever when not logged in. A fix for this will require introducing a default loading state while the authentication is checked.