I have implemented connectInfiniteHits react-infinite-scroller, and all is working almost perfectly.
But whenever the state of the React Component is modified, the connector is re-rendered with value
undefined for the
hits prop, which breaks the page.
The state can be modified for multiple reasons, depending on interactions on the search page.
This fiddle should show the behaviour with a timeout changing the state.
Any idea where what I am doing wrong?