Skip to content

Conversation

@Arghyadeep09
Copy link

@Arghyadeep09 Arghyadeep09 commented Oct 13, 2025

Description

Hi @Hrishikesh-Dalal this update improves the user experience by storing the last searched city in localStorage and auto-populating it when the user revisits the app.
It ensures that users can instantly see the weather for their last viewed city without re-entering it each time.

issue : #17

💡 Implementation Details

---Added logic to save the last searched city to localStorage after every successful fetch.

---Modified the useState initialization to load the saved city (if available) on app startup.

---Default city remains “London” when no previous search exists.

---Maintained full compatibility with cache clearing, unit switching, and other features.

Screenshots :

image

@vercel
Copy link

vercel bot commented Oct 13, 2025

Someone is attempting to deploy a commit to the venisha-kalola's projects Team on Vercel.

A member of the Team first needs to authorize it.

@venisha-kalola
Copy link
Contributor

venisha-kalola commented Oct 13, 2025

add the issue number which was assigned to you, #17 or whatever the issue number was in the PR request description

@Arghyadeep09
Copy link
Author

@Hrishikesh-Dalal please check this

@venisha-kalola venisha-kalola merged commit 74716be into commitra:main Oct 13, 2025
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants