appbaseio / appbaseio/reactivesearch

Infinite scroll creates duplicate records

Open
#876 7 comments 1 reaction 0 assignees View on GitHub
bug Needs Example
Dominant language
JavaScript
Stars
4.9k
Forks
478
PR merge metrics
No merged PRs in 30d

Description

**Issue Type:**
Bug

**Platform:**
Web

**Description:**
When using infinite scroll, if you scroll down past the first page or so it shows new results but loads duplicate hits. It appears the duplicates are the last hit of the previous "page". In addition to showing duplicates, it also throws a React error:

Warning: Encountered two children with the same key, `{id}`. Keys should be unique so that
components maintain their identity across updates. Non-unique keys may cause children to be
duplicated and/or omitted — the behavior is unsupported and could change in a future version.

**Screenshots:**
[Video demo of issue](https://champs.hippovideo.io/video/play/EX5wnpY5-TKfJ_wg5SgC66fD-V2Ds4-EsR0dLQ7eU3o)

**Reactivesearch version:** x.y.z
3.0.0-beta.10

**Browser:**
All

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.