[DOCUMENTATION] Incorrect documentation on page "Conditional display in React Instantsearch" #6464
Open
1 task done
Labels
triage
Issues to be categorized by the team
🐛 Current behavior
Page: https://www.algolia.com/doc/guides/building-search-ui/going-further/conditional-display/react/
In the section on Handling No Results a code sample is given to create a No Results boundary. After that code sample is this line
That's flat out wrong. If you put an InfiniteHits component (Algolia's or any custom one) in a NoResultsBoundary that boundary will unmount the infiniteHits component briefly as it loads the next batch of results, then remount it. This wipes the state of the infiniteHits module and prevents it from working. I discovered this from personal painful experience and it took a day to debug. This line should be removed and replaced with a warning to not try to use a no results boundary with an infinite hits module.
Code of Conduct
The text was updated successfully, but these errors were encountered: