Add query parameter before refreshing


I’m using a search store and I’d like to add a quey parameter whom its value resides in my vuex store. This value can be modified in a different component, that’s why I can’t just set the parameter when creating the search store.

I was thinking if there were some kind of method beforeRefresh that would let me add my query parameter at the last moment.

In the same way, how can I update my vuex store, with the request result after refreshing ?

Thank you.

I have found what I needed in algoliasearch-helper library with the searchOnce function.