-
It would be nice to be able to access the instant search current state (or states, depending on how many instantsearch parent components we have in the page) in our component's setup via some composables like useInstantSearch, useAisStats, useCurrentRefinements etc. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
We have so far chosen to not yet support composables, but you can take the logic which is in widgetMixin and put that in a composable instead in your own codebase. You can be inspired by this PR: algolia/vue-instantsearch#1052 |
Beta Was this translation helpful? Give feedback.
-
For anyone stumbling across this discussion, I've started working at a nuxt 3 implementation for instantsearch https://nuxt-swiftsearch.netlify.app/ |
Beta Was this translation helpful? Give feedback.
We have so far chosen to not yet support composables, but you can take the logic which is in widgetMixin and put that in a composable instead in your own codebase. You can be inspired by this PR: algolia/vue-instantsearch#1052