Skip to content

Conversation

@mitoperni
Copy link
Owner

@mitoperni mitoperni commented Feb 9, 2026

Description

Replace manual setTimeout + ref debounce pattern in StationsSyncContext with useDebouncedCallback from use-debounce library, which is already a project dependency used in use-url-params.ts.

Type of Change

  • New feature
  • Bug fix
  • Refactoring
  • Documentation
  • Styling

Changes Made

  • Replace manual debounce (setTimeout + ref + cleanup useEffect) with useDebouncedCallback
  • Remove debounceTimerRef and its cleanup useEffect (-18 lines, +4 lines)
  • Remove unused useEffect import

Checklist

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

Related Issues

N/A


Open with Devin

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

@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 7:30pm

@mitoperni mitoperni merged commit 85cd1ae into main Feb 9, 2026
6 checks passed
@mitoperni mitoperni deleted the fix/consistent-debounce 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