I’m looking to implement a separator between hits that’s conditional based on a comparison with the next/previous hit.
An example of what I’m trying to accomplish:
I’m developing in React Native where I’m using
connectInfiniteHits from react-instantsearch-native, but I’ve hit a wall in regards to accessing the next hit from a given hit.
Any pointers on how to accomplish this?
All the best,