Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weather Unit selection not Updating the temperature #61

Closed
Code-Victor opened this issue Nov 22, 2023 · 0 comments · Fixed by #62
Closed

Weather Unit selection not Updating the temperature #61

Code-Victor opened this issue Nov 22, 2023 · 0 comments · Fixed by #62

Comments

@Code-Victor
Copy link
Contributor

When there's a change in weather unit, the temperature doesn't change

Code-Victor added a commit that referenced this issue Nov 22, 2023
Refactor WeatherTab component to fix an issue where changing the weather
unit was not triggering a data refresh. Added a new function,
setUnitAndRefetch, to update the unit and invalidate the weather query
cache. This ensures that the weather data is correctly updated when
switching between Fahrenheit and Celsius units. Fixes #61.
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 a pull request may close this issue.

1 participant