I’ve been using
connectStateResults for a while, and recently noticed that it was being called 3 or 4 times in a row with the same arguments, anytime I enter a new search. This is obviously a problem since the UI is getting rendered too many times.
my application uses a controlled
onSearchStateChange props), as well as a custom
Hits component with
However, I could reproduce this issue by using Algolia default
Hits component, and by switching to
InstantSearch to an ‘uncontrolled’ mode (by removing the use of
Are you aware of this kind of issue, and are there any fixes?
I can provide you with a test case if needed