meilisearch-js-plugins
meilisearch-js-plugins copied to clipboard
Clicking "Load More Results" does not always load more pages of results
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