Skip to content

How to pass get the number of hits in middleware onStageChange? #6636

Answered by Haroenv
garyhuangdev asked this question in Q&A
Discussion options

You must be logged in to vote

hmm I was wrong and there's no result event indeed, sorry. You can listen on instantSearchInstance.render which will have the results available in search.mainIndex.getResults. Sorry for the detour you need to get this functionality but our builtin events don't need the result to send the event.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@garyhuangdev
Comment options

@Haroenv
Comment options

@garyhuangdev
Comment options

@Haroenv
Comment options

Answer selected by garyhuangdev
@garyhuangdev
Comment options

@Haroenv
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants