Skip to content

Conversation

johnsimons
Copy link
Member

Added debounce for filter component

Added debounce for filter component
@johnsimons johnsimons self-assigned this Apr 7, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 2 out of 4 changed files in this pull request and generated 1 comment.

Files not reviewed (2)
  • src/Frontend/package-lock.json: Language not supported
  • src/Frontend/package.json: Language not supported

johnsimons and others added 2 commits April 7, 2025 11:29
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
const props = withDefaults(defineProps<{ placeholder?: string; ariaLabel?: string }>(), { placeholder: "Filter by name...", ariaLabel: "filter by name" });
const localInput = ref<string>(model.value);
const debounceUpdateModel = debounce((value: string) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think including a library dependency for this functionality is overkill

Copy link
Member Author

Choose a reason for hiding this comment

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

Well, are you proposing we reinvent the wheel?

Copy link
Contributor

Choose a reason for hiding this comment

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

yes, for something as simple as a setTimeout, it is safer to reinvent the wheel rather than pull in a library

@johnsimons johnsimons merged commit ce631fa into master Apr 7, 2025
5 checks passed
@johnsimons johnsimons deleted the john/small_improvements branch April 7, 2025 07:59
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.

2 participants