Skip to content

fix(performance): debounce notes search input for smoother filtering#445

Merged
KaranUnique merged 1 commit into
Canopus-Labs:mainfrom
Abhi666-max:fix-notes-debounce
Jul 14, 2026
Merged

fix(performance): debounce notes search input for smoother filtering#445
KaranUnique merged 1 commit into
Canopus-Labs:mainfrom
Abhi666-max:fix-notes-debounce

Conversation

@Abhi666-max

Copy link
Copy Markdown
Contributor

📝 Pull Request Description

Related Issue

Closes #392

Summary

Implemented a 300ms debounce on the search input in the NotesBooks component. Previously, the category list filtered on every single keystroke, causing unnecessary re-renders and potential lag. This update delays the filtering execution until the user stops typing, significantly improving performance and making the UI feel much smoother.


Type of Change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature
  • ♻️ Refactoring
  • 📝 Documentation update
  • 🎨 UI/UX improvement
  • 🔥 Other(please describe): Performance Optimization

How Has This Been Tested?

  • Rapidly typed various queries into the search bar to ensure the UI does not freeze or lag during input.
  • Verified that the category list correctly updates only after a 300ms pause in typing.
  • Confirmed that clearing the input (backspacing everything) resets the list accurately without any glitches.

Screenshots (if applicable)

N/A (This is a background performance enhancement; no visual UI changes were made).


Checklist

  • My code follows the project's guidelines
  • I have tested my changes
  • I have updated documentation where necessary
  • I have linked the related issue
  • My changes do not introduce new warnings or errors

@KaranUnique KaranUnique merged commit a738076 into Canopus-Labs:main Jul 14, 2026
2 checks passed
@Abhi666-max Abhi666-max deleted the fix-notes-debounce branch July 14, 2026 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix(Performance): Debounce the notes search input for smoother filtering

2 participants