algolia / vue-instantsearch

πŸ‘€ Algolia components for building search UIs with Vue.js

Home Page:https://www.algolia.com/doc/guides/building-search-ui/what-is-instantsearch/vue

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

<ais-instant-search :on-state-change: function /> is not implemented

chamby opened this issue Β· comments

Bug 🐞

What is the current behavior?

<ais-instant-search :on-state-change: function /> does not work because the on-state-change property is not implemented. I attempted to work around this using middleware directly :middlewares="[() => { return {onStateChange: onStateChange}}]" but the function signature of onStateChange does not include a setUiState argument.

What is the expected behavior?

The parameter exists and operates as per the documentation.

Documentation

<ais-instant-search
  ...
  // Optional parameters
  :on-state-change: function
  ...
/>

What is the version you are using?

v4.5.0

I've made the PR #1149 to add this, thanks for the suggestion