Skip to content

Conversation

@meetdhorajiya
Copy link
Contributor

This PR introduces a refresh button on the COVID-19 Tracker page, allowing users to fetch the latest summary data on demand without needing to reload the entire page.

This resolves issue #26 .

Changes Made

  • Added a Refresh button next to the page heading in src/pages/Covid.jsx.
  • The button is disabled and its text changes to "Refreshing..." during an active API call.
  • The fetchSummary function now includes a guard to prevent overlapping requests if the button is clicked multiple times.
  • Wrapped fetchSummary in useCallback for performance optimization.

@vercel
Copy link

vercel bot commented Oct 14, 2025

@meetdhorajiya 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.

@meetdhorajiya
Copy link
Contributor Author

meetdhorajiya commented Oct 14, 2025

Hi @Hrishikesh-Dalal , my PR for the refresh button (issue #26) is ready for your review. Thanks!

@venisha-kalola venisha-kalola merged commit f6c75f7 into commitra:main Oct 15, 2025
1 of 2 checks passed
@meetdhorajiya meetdhorajiya deleted the feature/add-summary-refresh branch October 15, 2025 09:31
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