appbaseio / reactivesearch

Search UI components for React and Vue
https://opensource.appbase.io/reactivesearch
Apache License 2.0
4.89k stars 471 forks source link

MultiList showLoadMore WITH nestedField #2217

Open jorgeju4rez opened 1 year ago

jorgeju4rez commented 1 year ago

Affected Projects React

Library Version: x.y.z ^4.0.0-rc.12

Describe the bug When using the MultiList component in a React application with the nestedField and showLoadMore props, the component fails to render.

Expected behavior The MultiList component should render correctly and display a "Load More" button to allow the user to load more items in the list.

Steps to reproduce

Additional information This issue seems to occur only when using both the nestedField and showLoadMore props together. When using either prop separately, the component renders correctly without any errors.

To Reproduce

<MultiList
 URLParams
 searchPlaceholder="Search by brands"
 componentId="brand"
 dataField="products.brand.keyword"
 nestedField="products"
 placeholder="Brands"
 size={10}
 showLoadMore
 react={{
 and: [
   "treeListSensor",
 ]}}
/>