How to detect vue-instant-search is done rendering?


I’m currently trying to reduce the Cumulative Layout Shift of my search page by displaying a skeleton of the search results before ais-infinite-hits is actually rendered.

I’m wondering what’s the best way to detect if ais-infinite-hits or any other vue-instantsearch component is done rendering? Is there an event I could catch for that?

My idea is to display the skeleton and then hide it at the moment the search is properly displayed.

Thanks for your help!