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

Multiple API calls for same input when user types simultaneously in search box #133

Open
Akashs991 opened this issue Jan 4, 2019 · 0 comments

Comments

@Akashs991
Copy link

Scenario: User needs to search entries by using search parameter as test in paper autocomplete suggestion

Scenario 1 - User types in letters for test in a millisecond delay. So what happens when we check network tab in developer tools
api/?search=t
api/?search=te
api/?search=tes
api/?search=test
User see suggestion in the drop down and selects any entry

Scenario 2 - User types in letters for test simultaneously. So what happens when we check network tab in developer tools
api/?search=te
api/?search=te
api/?search=test
api/?search=test
User see suggestion in the drop down and selects any entry

Result in both scenario are same, but what happens in the backend is different. Scenario 1 works as accepted but scenario 2 makes 2 api calls with same search input as you can see above like

Is there a solution for the behavior that is happening.

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

No branches or pull requests

1 participant