Skip to content

Conversation

@mitoperni
Copy link
Owner

@mitoperni mitoperni commented Feb 9, 2026

Description

Remove unused filters object from useUrlParams hook. The getFilters() callback created a new object on every render, but filters was never consumed by any component — only in tests.

Type of Change

  • Refactoring

Changes Made

  • Removed getFilters useCallback and filters from the hook return value
  • Updated tests to assert on searchValue and countryValue instead of filters

Checklist

  • Code follows project style guidelines
  • Self-review completed
  • No TypeScript errors
  • Tests added/updated
  • All CI checks pass

Open with Devin

@vercel
Copy link

vercel bot commented Feb 9, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
cyclemap Ready Ready Preview, Comment Feb 9, 2026 3:38pm

Copy link

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

@mitoperni mitoperni self-assigned this Feb 9, 2026
@mitoperni mitoperni merged commit cf2103b into main Feb 9, 2026
6 checks passed
@mitoperni mitoperni deleted the fix/remove-unused-filters branch February 10, 2026 08:09
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.

1 participant