I'm using sitecore 9.1.1 and SXA 1.8.1.
I have a page on which i added the following components: 1- search result 2- search box with suggestion mode "show search result as prediction" 3- Date Filter 4- page selector
The problem is: when i search with a query in the search box such that the returned search result count is less than the pagesize of the search result, the API request gets called forever ( i get infinite API requests in the Network).
However if the result count is equal to or greater than the pagesize, the API gets called once and everything goes normal.
When i tried to debug "component-seacrh-page-selector" i found that the case where result count < pagesize is causing this problem because it has a timeout function in which it keeps updating the hashobj thus calling the search API again and again forever.
Mentioning that: if the datefilter has any value, the problem of infinite API requests no longer happens.
Any idea what might be the reason for this strange behaviour?