Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

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

Closed
chamby opened this issue Sep 19, 2022 · 1 comment · Fixed by #1149
Closed

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

chamby opened this issue Sep 19, 2022 · 1 comment · Fixed by #1149

Comments

@chamby
Copy link

chamby commented Sep 19, 2022

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

@Haroenv
Copy link
Contributor

Haroenv commented Sep 20, 2022

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants