Skip to content

Conversation

@Shuklax
Copy link

@Shuklax Shuklax commented Dec 25, 2025

What kind of change does this PR introduce?
Bugfix / Refactoring.

Issue Number:
Closes #2027

Summary
This PR fixes the "index as key" anti-pattern in the ToolingTable component. Using indices as keys causes React to incorrectly reuse component instances during filtering and sorting, leading to stale UI states and performance issues.

My solution implements a composite stable key using the tool's name and its source/homepage URL. I have applied this fix to both the Desktop and Mobile table views to ensure a consistent experience across all devices.

@Shuklax Shuklax requested a review from a team as a code owner December 25, 2025 18:58
@github-project-automation github-project-automation bot moved this to Ready to review in PR - Triage Group Dec 25, 2025
@github-actions
Copy link

github-actions bot commented Dec 25, 2025

built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
website ✅ Ready (View Log) Visit Preview b214555

@codecov
Copy link

codecov bot commented Dec 25, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (4765f6d) to head (b214555).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #2031   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           30        30           
  Lines          633       633           
  Branches       196       196           
=========================================
  Hits           633       633           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Utkarsh-123github
Copy link
Member

I’m closing this PR for now. For future contributions, please wait until the issue is assigned to you before opening a PR. We want to foster a collaborative environment, not a competitive one, and this helps avoid overlapping efforts.
Thank you!

@github-project-automation github-project-automation bot moved this from Ready to review to Done in PR - Triage Group Dec 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

🐛 Bug: React anti-pattern - Array index used as key in ToolingTable

2 participants