appbaseio / appbaseio/reactivesearch

MultiList issues two queries on first select

Open
#2,301 3 comments 0 reactions 0 assignees 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
3.45.0

We have a ReactiveList and a MultiList where ReactiveList depends on MultiList.

When we select an item from MultiList for the first time, then there is two queries issued to elastic for the result.

The first query doesn't contain the selected value from MultiList, whereas the second one does. This issue becomes very problematic if the first query resolves before the second, as the result will be incorrect and it will be as-if the filter isn't selected.

Subsequent filter selects don't have this issue.

This issue is there in the sandbox provided in the documentation

https://docs.reactivesearch.io/docs/reactivesearch/react/v3/overview/quickstart/#step-5-adding-layout-and-styles

https://codesandbox.io/p/sandbox/github/appbaseio/reactivesearch/tree/v3/packages/web/examples/MyAwesomeSearchStep5?from-embed=

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.