meilisearch-js-plugins icon indicating copy to clipboard operation
meilisearch-js-plugins copied to clipboard

Clicking "Load More Results" does not always load more pages of results

Open chamby opened this issue 2 years ago • 0 comments

Description

@bidoubiwa and I debugged this. Charlotte has a suspicion about where the bug lies.

Expected behavior

Clicking "Load More Results" with the ais-infinite-hits widget should load more results as long as there are more pages of results.

Current behavior

Clicking "Load More Results" with the ais-infinite-hits widget sometimes does not load more results even if there are more pages of results.

searchContext.pagination.page is incorrect when building out a searchContext resulting in a cached response being used instead of issuing a new network query.

Screenshots or Logs

Slack discussion: https://meilicommunity.slack.com/archives/C01HTBLHGFL/p1659566578644099

Environment

  • OS: Ubuntu 20.04
  • Browser: Firefox 104.0b4
  • Meilisearch version: v.0.28.1
  • instant-meilisearch version: v0.8.1
  • instantsearch.js version: v4.38.0

chamby avatar Aug 04 '22 17:08 chamby