Skip to content

MultiList issues two queries on first select #2301

@rgb-panda

Description

@rgb-panda

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=

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions