You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
"query":[{"id":"results","type":"search","dataField":["_score"],"execute":true,"react":{"and":["searchbox","authorsfilter","ratingsfilter","results__internal"]},"size":6,"from":0},{"id":"ratingsfilter","type":"range","dataField":["average_rating"],"execute":false,"react":{"and":"ratingsfilter__internal"},"value":{"start":4,"end":5,"label":"4 stars and up"}}]}'
Second Query
"query":[{"id":"results","type":"search","dataField":["_score"],"execute":true,"react":{"and":["searchbox","authorsfilter","ratingsfilter","results__internal"]},"size":6,"from":0},{"id":"authorsfilter","type":"term","dataField":["authors.keyword"],"execute":false,"react":{"and":"authorsfilter__internal"},"aggregationSize":5,"value":["Nora Roberts"]},{"id":"ratingsfilter","type":"range","dataField":["average_rating"],"execute":false,"react":{"and":"ratingsfilter__internal"},"value":{"start":4,"end":5,"label":"4 stars and up"}}]}'
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=
The text was updated successfully, but these errors were encountered: