Open
Description
Using the isSearchStalled
props received from connectStateResults
with a slow internet connection causes the page to re-render endlessly 🥲
You can try it by adding the following code to the playground :
const Results = connectStateResults(({ isSearchStalled }) => {
if (isSearchStalled) return <div>loading...</div>
return <InfiniteHits hitComponent={Hit} />
})
Replace then the InfiniteHits
component with the Results
one. Don't forget to test with fast 3G
or slower !