github-profile-analyzer icon indicating copy to clipboard operation
github-profile-analyzer copied to clipboard

Advanced Performance: Implement SWR/React Query for caching GitHub API responses

Open basantnema31 opened this issue 6 months ago • 2 comments

Description

Currently, when a user analyzes a profile, the app makes heavy requests to the GitHub API. If the user navigates away and back, the data is fetched again, wasting API rate limits and slowing down the UX.

Proposed Solution

I propose migrating the data fetching logic to useSWR or @tanstack/react-query. This will cache the API responses in memory, provide instant UI updates on back-navigation, and automatically deduplicate requests to prevent hitting GitHub rate limits.

I would love to work on this critical performance issue under the GSSoC '24 program! Could you please assign it to me?

basantnema31 avatar May 26 '26 15:05 basantnema31

assign me

saurabhhhcodes avatar Jun 11 '26 07:06 saurabhhhcodes

Proposed Solution\nAdd a small caching layer for the profile analysis request so repeat navigations reuse the last fetched GitHub API response instead of refetching immediately. I’ll keep the change scoped to the data-fetching hook and validate the UX behavior after the refactor.\n\nassign me

saurabhhhcodes avatar Jun 11 '26 07:06 saurabhhhcodes