appbaseio / appbaseio/reactivesearch

MultiList issues two queries on first select

Ouverte
#2,301 3 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
bug
Langage dominant
JavaScript
Étoiles
4.9k
Forks
478
Métriques de merge des PR
Aucune PR mergée en 30 j

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=

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.