algolia / algolia/instantsearch-android

InstantSearch: Duplicated items in Infinite Hits Compose paginator

Open
#371 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Kotlin
Stars
159
Forks
32
Avg merge
7d 22h
Merged PRs (30d)
2

Description

**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

Contributor guide

Open the contributing guide

Research direction

Build and run the instantsearch-android example, open the Declarative UI example, and reproduce the "amazo" query with the "Cell Phone Accessories" and "Audio" filters. Inspect the Infinite Hits Compose paginator and verify that the result list contains exactly the 11 returned hits without duplicates.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile, search
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.