Anyone familiar with infinitehits / instantsearch ...
# community-help
g
Anyone familiar with infinitehits / instantsearch widget (the non react route)? I’m attempting to have it load more results without a page refresh. Out of the box
showMore()
will refresh the page with a url
&page=2
Then reset the query with a different search variable
?search_result=etc
When I customize the widget to prevent page refresh, it sends me two hit results - the current and the next page. This is confusing behavior.
j
I’m guessing you’re trying to implement load more on scroll? In any case, here’s how to implement this with / without scroll: https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/infinite-scroll/js/