Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search with autocomplete: Set minimum query length #4382

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

csutter
Copy link
Contributor

@csutter csutter commented Nov 8, 2024

What

This stops the search_with_autocomplete component from wasting requests trying to fetch suggestions when our backend won't provide any for query lengths < 3.

Why

Fewer pointless requests is better!

Note that I've not bothered making this configurable - it's unlikely for the time being that this component will be used with a different source/backend, so there isn't much point in adding a configuration option. I've also not added a changelog option as that felt over the top 😄

This stops the component from wasting requests trying to fetch
suggestions when our backend won't provide any for query lengths < 3.
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