-
Notifications
You must be signed in to change notification settings - Fork 103
bug: Inconsistent State on Browser Back/Forward #558
Copy link
Copy link
Open
Labels
ECSoC26Contributions considered under ECSoC'26Contributions considered under ECSoC'26
Description
Aditya8369
opened on Aug 4, 2026
Issue body actions
- Description: In App.jsx, the handlePopState effect updates the position and selectedCity from the URL hash. However, if the user navigates back to a state where there is no hash, it calls setSelectedCity("auto") but doesn't trigger the geolocation flow, potentially leaving the UI in an inconsistent state (e.g., showing the previous city's data but with "auto" selected).
- Fix/Enhancement: Modify the handlePopState function to explicitly trigger the geolocation flow when falling back to the "auto" state, ensuring the UI correctly updates to the user's current location.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
ECSoC26Contributions considered under ECSoC'26Contributions considered under ECSoC'26