MobilityData / mobility-feed-api

Apache License 2.0
8 stars 3 forks source link

Lack a global mechanism for managing user states during cold loading #516

Open qcdyx opened 3 days ago

qcdyx commented 3 days ago

Describe the bug

Continues #443, the web app lacks a global mechanism for managing user states. When a user opens a static page (About, Privacy Policy, or Terms and Conditions) in a new tab, the app does not manage the user state.

If a user is already logged in, and clicked on the bookmarked login address, the app returns a blank page. image

I suggest manager user state/refresh user in the header.tsx.

Steps/Code to Reproduce

  1. Login
  2. Open Privacy Policy/login in a new tab, user state is undefined.

Expected Results

User should stay logged in (User state is managed globally).

Actual Results

User state is undefined.

Screenshots

No response

Files used

No response

Additional notes

No response