Skip to content

InstantSearch: Duplicated items in Infinite Hits Compose paginator #371

@peyerc

Description

@peyerc

Describe the bug 🐛

We have implemented an infinite pager according to the documentation found at https://www.algolia.com/doc/api-reference/widgets/infinite-hits/android/#examples and noticed on manageable result sets that the resulting list contains duplicates. After many hours of debugging the Google Paging 3 and Compose components without luck, we tried your Android InstantSearch example from https://github.com/algolia/instantsearch-android. We found the same issue.

To Reproduce 🔍
Steps to reproduce the behaviour:

  1. Build and run https://github.com/algolia/instantsearch-android
  2. Select the "Declarative UI" Example in "Guides"
  3. Enter the query "amazo" and select the filters "Cell Phone Accessories" and "Audio".
  4. You get 11 hits but in the list are 12 items.

Expected behavior 💭
If we set up a query and filter that returns 11 hits, we expect the resulting list to contain precisely 11 items.

Screenshots 🖥

Environment:

  • OS: Android
  • Library Version 3.1.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions