How to call a function after any refinement?


I want to be able to call some custom code - a callback to rephrase it - whenever a refinement is done on my index. I have already multiple filters implemented with almost no widget customization and I would like to keep it that way - if possible - because it would be too much work to customize them all.

Can you help me on this one please? Oh and by the way, I’m using Vue InstantSearch v4.