appbaseio / appbaseio/reactivesearch

Reactive List stalls returning the correct data on initial applied filters

Open
#1,532 5 comments 0 reactions 1 assignee Claimed by @bietkul View on GitHub
bug
Dominant language
JavaScript
Stars
4.9k
Forks
478
PR merge metrics
No merged PRs in 30d

Description

**Affected Projects**
React
**Library Version:** x.y.z
9.6.15

**Describe the bug**
When ReactiveList is returning data from applied filters the data results is incorrect. After numerous re render the data and stats count are correct. It appears ReactiveList during re render stalls providing the correct data until the last render hit. Sometimes it does not return the expected data with the filter applied after numerous render.

**To Reproduce**
Our app has over 50 filters that utilizes reactive list. When filters are applied on the app and the user refreshes the page. Reactive List lags and returns different data on re-render. Reactive List lags returning the correct data result from the applied filter.

**Expected behavior**
It is expected that when a user refreshes the page with filters applied. The results returns the correct data without any lag or staled data.

**Screenshots**
Without specified filter applied. Total unfiltered results.
![image](https://user-images.githubusercontent.com/66189547/90777296-37299f80-e2c9-11ea-9641-0d671695f6e2.png)

When Filter is applied without page reload
![image](https://user-images.githubusercontent.com/66189547/90777499-7fe15880-e2c9-11ea-8353-8f2f3c4b7635.png)

renderResultStats stats count
![image](https://user-images.githubusercontent.com/66189547/90777571-98517300-e2c9-11ea-8eba-1b49f2d62b40.png)

As you can see the results lags retrieving the correct data.

When refreshing the page with filter applied![image](https://user-images.githubusercontent.com/66189547/90778975-4b6e9c00-e2cb-11ea-8f6d-283d6a6315dc.png)

The data stalls even more not returning the correct result, until the last render.

**Desktop (please complete the following information):**
OS: Ubuntu 18
Browser: chrome, firefox
Version: latest

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

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.