algolia / instantsearch-ios

⚡️ A library of widgets and helpers to build instant-search applications on iOS.
https://www.algolia.com/doc/guides/building-search-ui/what-is-instantsearch/ios/
Apache License 2.0
591 stars 55 forks source link

feat(searchbox): query debouncing #297

Closed VladislavFitz closed 10 months ago

VladislavFitz commented 10 months ago

Summary

This PR adds query debouncing logic into connection between SearchBoxInteractor and SearchBoxController.

The goal of debouncing it the introduction of a delay between successive query inputs. This ensures that the system doesn't get overwhelmed with rapid changes in the query reduces the frequency of unnecessary operations, providing a more responsive and efficient behavior, especially when dealing with real-time search operations.