connectInfiniteHits to display all of the hits in our app, and we would like to be able to differentiate between
(1) a response from Algolia has been received, and there are no hits
(2) a response from Algolia has not yet been received
currently these two cases look the same inside our results component, as the props received are the same, namely
hits = .
Either adding another prop to determine whether results are currently loading or settings
hits = null until a response has been received both seem like decent approaches to this problem, but I think this has to be changed within the library itself.
Or is there perhaps another way of distinguishing between these two states that I am not aware of?
Thank you in advance!